Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamTypeJWT = "JWT" ParamPurposeAccess = "access" ParamPurposeRefresh = "refresh" ParamSigningAlgorithmHS256 = "HS256" ParamSigningAlgorithmHS512 = "HS512" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockDescription ¶
type MockDescription struct { Props struct { } Expected struct { Error error } }
var MockData MockDescription
type Token ¶
type Token struct { Headers struct { SigningAlgorithm string `json:"alg"` Type string `json:"typ"` } Payload struct { Issuer string `json:"iss"` Subject string `json:"sub"` Purpose string `json:"purpose"` SessionID string `json:"sessionID"` Data []byte `json:"data"` IssuedAt int64 `json:"iat"` } Signature string }
Click to show internal directories.
Click to hide internal directories.