Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClaims ¶
func NewClaims(iss string, aud string, exp uint64) jwt.RegisteredClaims
NewClaims - Creates a new claims structure with required claims applied to it. All tokens get the following claims applied to it: iss, aud, kid, iat, nbf, and exp. No custom expiration dates are supported for now, and all tokens will expires 1 day after they are issued
func NewClaimsWithSubject ¶
NewClaimsWithSubject - Provides a simple wrapper around NewClaims and inserts the subject string into the structure. This should be either a user ID or an application ID depending on the flow that was used
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.