Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { // JwtID is the ID of the refresh token. JwtID string // RefreshToken is the refresh token. RefreshToken string // ExpirationTime is the expiration time of the refresh token. ExpirationTime time.Duration }
Session represents a user session. This should be stored in K/V database like Redis.
type User ¶
Click to show internal directories.
Click to hide internal directories.