speechly

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 3 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL