Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefreshToken ¶
type RefreshToken struct {
ID string `gorm:"type:varchar(36);primary_key" json:"id"`
UserID string `gorm:"type:varchar(36);not null;index:idx_refresh_token_user_id" json:"user_id"`
Token string `gorm:"type:varchar(512);not null;uniqueIndex:idx_refresh_token_token" json:"token"`
ExpiresAt time.Time `gorm:"not null;index:idx_refresh_token_expires_at" json:"expires_at"`
Revoked bool `gorm:"default:false;index:idx_refresh_token_revoked" json:"revoked"`
CreatedAt time.Time `gorm:"index" json:"created_at"`
}
RefreshToken represents a refresh token stored in the database
func (RefreshToken) TableName ¶
func (RefreshToken) TableName() string
TableName specifies the table name for RefreshToken
Click to show internal directories.
Click to hide internal directories.