jwt

package
v0.0.0-...-0c1a86e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTokenExpired is returned if the token is expired
	ErrTokenExpired = errors.New("jwt: token is expired")
)

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
}

AccessToken contains the fields from the JWT

func ParseAccessToken

func ParseAccessToken(ctx context.Context, accessTokenStr string) (AccessToken, error)

ParseAccessToken and validate it

func (AccessToken) Valid

func (token AccessToken) Valid() error

Valid returns non-nil error if any of the fields are invalid or the token is expired

Jump to

Keyboard shortcuts

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