Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Jwt ¶ added in v1.1.6
type Jwt interface { Sign(payload map[string]interface{}) (string, error) Verify(token string) (*typ.Value, error) }
Jwt is the jwt
type Options ¶
type Options struct { Issuer string `json:"iss"` Subject string `json:"sub"` Audience string `json:"aud"` ExpiresAt int64 `json:"exp"` NotBefore int64 `json:"nbf"` IssuedAt int64 `json:"iat"` JWTID string `json:"jti"` Algorithm string }
Options is the options for jwt
type Payload ¶
type Payload struct { Issuer string `json:"iss"` Subject string `json:"sub"` Audience string `json:"aud"` ExpiresAt int64 `json:"exp"` NotBefore int64 `json:"nbf"` IssuedAt int64 `json:"iat"` JWTID string `json:"jti"` }
Payload is the payload of JWT
Click to show internal directories.
Click to hide internal directories.