Documentation ¶
Index ¶
- type JWT
- func (j JWT) AccessAndRefresh(ctx context.Context, id string, scopes []string) (string, string, error)
- func (j *JWT) Disconnect()
- func (j JWT) Fresh(ctx context.Context, id string) (string, error)
- func (j JWT) Refresh(ctx context.Context, token string) (string, string, string, error)
- func (j JWT) Validate(ctx context.Context, token string, tokenType proto.TokenType) (proto.Claims, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
JWT will handle creating and validating of access, refresh and fresh tokens.
func (JWT) AccessAndRefresh ¶
func (j JWT) AccessAndRefresh( ctx context.Context, id string, scopes []string) (string, string, error)
AccessAndRefresh returns access and refresh token
Click to show internal directories.
Click to hide internal directories.