Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + func ParseSameSite(s string) http.SameSite + type EnableResponse struct + BackupCodes []string + TotpURI string + type EnableResult struct + BackupCodes []string + PendingToken string + TotpURI string + type GenerateBackupCodesResponse struct + BackupCodes []string + type GetTOTPURIResponse struct + TotpURI string + type TOTPPluginConfig struct + BackupCodeCount int + Enabled bool + PendingTokenExpiry time.Duration + SameSite string + SecureCookie bool + SkipVerificationOnEnable bool + TrustedDeviceDuration time.Duration + TrustedDevicesAutoCleanup bool + TrustedDevicesCleanupInterval time.Duration + func (c *TOTPPluginConfig) ApplyDefaults() + type TOTPRecord struct + BackupCodes string + CreatedAt time.Time + Enabled bool + ID string + Secret string + UpdatedAt time.Time + UserID string + type TOTPRedirectResponse struct + TOTPRedirect bool + type TrustedDevice struct + CreatedAt time.Time + ExpiresAt time.Time + ID string + Token string + UserAgent string + UserID string + type VerifyBackupCodeRequest struct + Code string + TrustDevice bool + type VerifyBackupCodeResponse struct + Session *models.Session + User *models.User + type VerifyResult struct + Session *models.Session + SessionToken string + TrustedDeviceToken string + User *models.User + type VerifyTOTPRequest struct + Code string + TrustDevice bool + type VerifyTOTPResponse struct + Session *models.Session + User *models.User + type ViewBackupCodesResponse struct + RemainingCount int