jwt

package
v1.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TokenUseAccess = "access"
View Source
const TokenUseID = "id"

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

func (Claims) Valid

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

type CognitoClaims

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

type EnlightClaims added in v1.8.6

type EnlightClaims struct {
	EnlightUserID string `json:"enlightUserId"`
}

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