jwt

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	jwt.StandardClaims
	CognitoClaims
}

func (Claims) Valid

func (c Claims) Valid() (err error)

type CognitoClaims

type CognitoClaims struct {
	Username string `json:"username"`
	TokenUse string `json:"token_use"`
}

type Token

type Token jwt.Token

func Parse

func Parse(jwtToken string) (_ Token, err error)

func (Token) GetClaims

func (t Token) GetClaims() Claims

Jump to

Keyboard shortcuts

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