Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTokenExpired = errors.New("JWT token has expired")
ErrTokenExpired is returned when parsing an expired AccessToken.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { jwt.StandardClaims // contains filtered or unexported fields }
AccessToken is a JWT token used for accessing Speechly public APIs. It can be obtained using Speechly Identity service.
func (*AccessToken) Parse ¶
func (a *AccessToken) Parse(s string) error
Parse parses the string representation of token into AccessToken. If the token is invalid or expired, an error is returned.
func (AccessToken) String ¶
func (a AccessToken) String() string
Click to show internal directories.
Click to hide internal directories.