Documentation
¶
Index ¶
- Constants
- func New(cnf Config) (*service, error)
- type Config
- type Jwt
- func (j *Jwt) Expire(t string) (string, error)
- func (j *Jwt) GetClaims(t string) (*UserClaim, error)
- func (j *Jwt) Parse(t string, options ...jwt.ParserOption) (*jwt.Token, error)
- func (j *Jwt) Refresh(t string, d time.Duration, nd *jwt.NumericDate) (string, error)
- func (j *Jwt) Sign(p *UserClaim) (string, error)
- func (j *Jwt) SignWithJWtClaims(p jwt.Claims) (string, error)
- func (j *Jwt) Verify(t string) (bool, error)
- func (j *Jwt) VerifyAndParse(t string) (*UserClaim, error)
- type JwtConfig
- type User
- type UserClaim
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Jwt ¶
type Jwt struct {
// contains filtered or unexported fields
}
func (*Jwt) SignWithJWtClaims ¶
Click to show internal directories.
Click to hide internal directories.