Documentation
¶
Index ¶
Constants ¶
View Source
const (
AccessToken = "access"
)
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("invalid token") ErrExpiredToken = errors.New("token has expired") )
Functions ¶
func ComputeSHA256 ¶
Types ¶
type JWTManager ¶
type JWTManager struct {
// contains filtered or unexported fields
}
func NewJWTManager ¶
func (*JWTManager) GenerateAccessToken ¶
func (*JWTManager) ValidateAccessToken ¶
func (m *JWTManager) ValidateAccessToken(tokenString string) (*Claims, error)
Click to show internal directories.
Click to hide internal directories.