Documentation
¶
Index ¶
- type AccessClaims
- type Jwt
- func (o *Jwt[Account, SessionId]) New(account Account, sessionId SessionId) (token string, refreshToken string, err error)
- func (o *Jwt[Account, SessionId]) NewAccess(account Account, sessionId SessionId) (string, error)
- func (o *Jwt[Account, SessionId]) NewRefresh(sessionId SessionId) (string, error)
- func (o *Jwt[Account, SessionId]) Options() Options
- func (o *Jwt[Account, SessionId]) ParseAccess(token string) (claims AccessClaims, err error)
- func (o *Jwt[Account, SessionId]) ParseRefresh(token string) (claims RefreshClaims, err error)
- func (o *Jwt[Account, SessionId]) ParseRefreshSessionId(token string) (SessionId, 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, SessionId]) NewRefresh ¶
func (*Jwt[Account, SessionId]) ParseAccess ¶
func (o *Jwt[Account, SessionId]) ParseAccess(token string) (claims AccessClaims, err error)
func (*Jwt[Account, SessionId]) ParseRefresh ¶
func (o *Jwt[Account, SessionId]) ParseRefresh(token string) (claims RefreshClaims, err error)
func (*Jwt[Account, SessionId]) ParseRefreshSessionId ¶
type RefreshClaims ¶
type RefreshClaims[SessionId any] struct { SessionId SessionId `json:"sessionId"` jwt.RegisteredClaims }
Click to show internal directories.
Click to hide internal directories.