Documentation
¶
Index ¶
- type Data
- type JWT
- func (j *JWT) GenerateToken(ctx context.Context, request PayloadToken) (token string, err error)
- func (j *JWT) IsTokenRevoked(ctx context.Context, token string) bool
- func (j *JWT) RevokeToken(ctx context.Context, token string, expiration time.Duration) error
- func (j *JWT) ValidateToken(c echo.Context, token string) error
- type PayloadToken
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) GenerateToken ¶
func (*JWT) RevokeToken ¶
func (*JWT) ValidateToken ¶
type PayloadToken ¶
type PayloadToken struct { Data *Data `json:"data"` jwt.StandardClaims }
func NewTokenInformation ¶
func NewTokenInformation(ctx echo.Context) (*PayloadToken, error)
Click to show internal directories.
Click to hide internal directories.