Documentation ¶
Index ¶
Constants ¶
View Source
const ( Access int = iota Refresh )
Enum untuk tipe jwt
View Source
const (
CLAIMS = "claims"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomClaim ¶
type JWTAssumer ¶
type JWTAssumer interface { GenerateToken(claims CustomClaim) (string, rest_err.APIError) ValidateToken(tokenString string) (*jwt.Token, rest_err.APIError) ReadToken(token *jwt.Token) (*CustomClaim, rest_err.APIError) }
func NewJwt ¶
func NewJwt() JWTAssumer
Click to show internal directories.
Click to hide internal directories.