Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HS256 = j.SigningMethodHS256 HS384 = j.SigningMethodHS384 HS512 = j.SigningMethodHS512 )
Functions ¶
This section is empty.
Types ¶
type Algo ¶
type Algo j.SigningMethod
type Opts ¶
type Opts struct { // Aud is audience of the token, example is "WEB" or "MOBILE" Aud string // Sub is subject of the token, example is "LOGIN" Sub string // Iss is issuer, example is "Apple ink." Iss string // Jti is a token ID Jti string Algo Algo // Key for signature Key []byte // Exp is an expiration time Exp time.Time }
Click to show internal directories.
Click to hide internal directories.