Documentation ¶ Index ¶ type Jwt func New(a int, r int) (*Jwt, error) func (jwt *Jwt) AccessToken(uid uint, iss string) (string, error) func (jwt *Jwt) RefreshToken(uid uint, iss string) (string, error) func (jwt *Jwt) Validate(t string) (*uint, error) type TokenClaims 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 New ¶ func New(a int, r int) (*Jwt, error) func (*Jwt) AccessToken ¶ func (jwt *Jwt) AccessToken(uid uint, iss string) (string, error) func (*Jwt) RefreshToken ¶ func (jwt *Jwt) RefreshToken(uid uint, iss string) (string, error) func (*Jwt) Validate ¶ func (jwt *Jwt) Validate(t string) (*uint, error) type TokenClaims ¶ type TokenClaims struct { UID uint Type string j.RegisteredClaims } Source Files ¶ View all Source files jwt.go Click to show internal directories. Click to hide internal directories.