Documentation ¶
Index ¶
- type AccessClaims
- type Jwt
- func (o *Jwt[Account, Session]) New(account Account, session Session) (token string, refreshToken string, err error)
- func (o *Jwt[Account, Session]) NewAccess(account Account, session Session) (string, error)
- func (o *Jwt[Account, Session]) NewRefresh(session Session) (string, error)
- func (o *Jwt[Account, Session]) Options() Options
- func (o *Jwt[Account, Session]) ParseAccess(token string) (claims AccessClaims[Account, Session], err error)
- func (o *Jwt[Account, Session]) ParseRefresh(token string) (claims RefreshClaims[Session], err error)
- func (o *Jwt[Account, Session]) ParseRefreshSession(token string) (Session, error)
- type Options
- type RefreshClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessClaims ¶
type Jwt ¶
func (*Jwt[Account, Session]) NewRefresh ¶
func (*Jwt[Account, Session]) ParseAccess ¶
func (o *Jwt[Account, Session]) ParseAccess(token string) (claims AccessClaims[Account, Session], err error)
func (*Jwt[Account, Session]) ParseRefresh ¶
func (o *Jwt[Account, Session]) ParseRefresh(token string) (claims RefreshClaims[Session], err error)
func (*Jwt[Account, Session]) ParseRefreshSession ¶ added in v0.5.3
type RefreshClaims ¶
type RefreshClaims[Session any] struct { Session Session `json:"session,omitempty"` jwt.RegisteredClaims }
Click to show internal directories.
Click to hide internal directories.