Documentation
¶
Index ¶
Constants ¶
View Source
const ( ClaimType = "typ" ClaimName = "name" ClaimUsername = "username" ClaimSub = "sub" )
Variables ¶
View Source
var ( ErrTokenExpired = errors.New("token expired") ErrInvalidTokenType = errors.New("invalid token type") )
Functions ¶
Types ¶
type Config ¶
type Config struct { SigningMethod string Lifetime time.Duration Issuer string Audience []string Type string SymmetricKey []byte // Used for symmetric signing // contains filtered or unexported fields }
func (*Config) RSAPublicOnlyKey ¶
type InternalToken ¶
type InternalToken string
Click to show internal directories.
Click to hide internal directories.