Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator interface { // Sign is used to generate a token. Sign(ctx context.Context, userID string) (IToken, error) // Destroy is used to destroy a token. Destroy(ctx context.Context, accessToken string) error // ParseClaims parse the token and return the claims. ParseClaims(ctx context.Context, accessToken string) (*jwt.RegisteredClaims, error) // Release used to release the requested resources. Release() error }
Authenticator defines methods used for token processing.
Click to show internal directories.
Click to hide internal directories.