Documentation
¶
Index ¶
- type AdminAuditEvent
- type AllowedEmail
- type AuthProvider
- type Challenge
- type ChallengePurpose
- type EmailJob
- type EmailJobStatus
- type EmailTemplate
- type Passkey
- type PendingEmailChange
- type PendingPasswordReset
- type PendingProviderLink
- type PendingProviderLinkPurpose
- type PendingSignupAction
- type Provider
- type RefreshToken
- type Session
- type User
- type VerificationCode
- type WebAuthnChallenge
- type WebAuthnChallengePurpose
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAuditEvent ¶ added in v0.1.23
type AllowedEmail ¶ added in v0.1.13
type AuthProvider ¶
type Challenge ¶ added in v0.1.12
type Challenge struct {
ID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
ExpiresAt time.Time
ConsumedAt *time.Time
Purpose ChallengePurpose
Email string
AttemptCount int
MaxAttempts int
ResendCount int
MaxResends int
LastSentAt *time.Time
}
func (Challenge) HasAttemptsRemaining ¶ added in v0.1.12
func (Challenge) IsConsumed ¶ added in v0.1.12
type ChallengePurpose ¶ added in v0.1.12
type ChallengePurpose string
const ( ChallengePurposeSignup ChallengePurpose = "signup" ChallengePurposePasswordReset ChallengePurpose = "password_reset" ChallengePurposeEmailChange ChallengePurpose = "email_change" )
type EmailJobStatus ¶ added in v0.1.12
type EmailJobStatus string
const ( EmailJobStatusPending EmailJobStatus = "pending" EmailJobStatusProcessing EmailJobStatus = "processing" EmailJobStatusSent EmailJobStatus = "sent" EmailJobStatusFailed EmailJobStatus = "failed" )
type EmailTemplate ¶ added in v0.1.12
type EmailTemplate string
const ( EmailTemplateSignupCode EmailTemplate = "signup_code" EmailTemplatePasswordResetCode EmailTemplate = "password_reset_code" EmailTemplateEmailChangeCode EmailTemplate = "email_change_code" )
type Passkey ¶ added in v0.1.21
type Passkey struct {
ID uuid.UUID
UserID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
CredentialID []byte
PublicKey []byte
AttestationType string
AttestationFormat string
Transport []string
AAGUID *uuid.UUID
SignCount uint32
CloneWarning bool
Name string
LastUsedAt *time.Time
UserPresent bool
UserVerified bool
BackupEligible bool
BackupState bool
}
type PendingEmailChange ¶ added in v0.1.15
type PendingPasswordReset ¶ added in v0.1.14
type PendingProviderLink ¶ added in v0.1.17
type PendingProviderLinkPurpose ¶ added in v0.1.19
type PendingProviderLinkPurpose string
const ( PendingProviderLinkPurposeAuthenticatedLink PendingProviderLinkPurpose = "authenticated_link" PendingProviderLinkPurposeAccountRecovery PendingProviderLinkPurpose = "account_recovery_link" )
type PendingSignupAction ¶ added in v0.1.12
type RefreshToken ¶
type VerificationCode ¶ added in v0.1.12
type WebAuthnChallenge ¶ added in v0.1.21
type WebAuthnChallengePurpose ¶ added in v0.1.21
type WebAuthnChallengePurpose string
const ( WebAuthnChallengePurposeRegistration WebAuthnChallengePurpose = "registration" WebAuthnChallengePurposeAuthentication WebAuthnChallengePurpose = "authentication" )
Click to show internal directories.
Click to hide internal directories.