Documentation ¶
Index ¶
- type Claims
- type JWT
- func (j JWT) NewAccessToken(oauthToken oauth2.Token, expiresAt time.Time) (string, error)
- func (j JWT) NewRefreshToken(oauthRefreshToken string, expiresAt time.Time) (string, error)
- func (j JWT) ValidateAccessToken(accessToken string) (*Claims, bool)
- func (j JWT) ValidateRefreshToken(refreshToken string) (*RefreshClaims, bool)
- type RefreshClaims
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
}
func (JWT) NewAccessToken ¶
func (JWT) NewRefreshToken ¶
func (JWT) ValidateAccessToken ¶
func (JWT) ValidateRefreshToken ¶
func (j JWT) ValidateRefreshToken(refreshToken string) (*RefreshClaims, bool)
type RefreshClaims ¶
type RefreshClaims struct { RefreshToken string `json:"oauth_refresh_token"` jwt.RegisteredClaims }
Click to show internal directories.
Click to hide internal directories.