Documentation ¶
Index ¶
Constants ¶
View Source
const UrgentRotateTime = 1 * time.Minute
Variables ¶
View Source
var ErrInvalidSessionToken = errors.New("invalid session token")
Functions ¶
This section is empty.
Types ¶
type TokenRevokedError ¶
func (*TokenRevokedError) Error ¶
func (e *TokenRevokedError) Error() string
func (*TokenRevokedError) Unwrap ¶
func (e *TokenRevokedError) Unwrap() error
type UserToken ¶
type UserToken struct { Id int64 UserId int64 AuthToken string PrevAuthToken string UserAgent string ClientIp string AuthTokenSeen bool SeenAt int64 RotatedAt int64 CreatedAt int64 UpdatedAt int64 RevokedAt int64 UnhashedToken string }
UserToken represents a user token
func (*UserToken) NeedsRotation ¶
Click to show internal directories.
Click to hide internal directories.