Documentation
¶
Index ¶
- type AdminAuditEvent
- type AllowedEmail
- type AuthProvider
- type Challenge
- type ChallengePurpose
- type EmailJob
- type EmailJobStatus
- type EmailTemplate
- type Organization
- type OrganizationInvitation
- type OrganizationInvitationStatus
- type OrganizationKind
- type OrganizationMember
- type OrganizationMembership
- type OrganizationRole
- 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" EmailTemplateOrganizationInvite EmailTemplate = "organization_invitation" )
type Organization ¶ added in v0.1.24
type OrganizationInvitation ¶ added in v0.1.24
type OrganizationInvitation struct {
ID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
OrganizationID uuid.UUID
Email string
Role OrganizationRole
TokenHash string
InvitedByUserID *uuid.UUID
ExpiresAt time.Time
AcceptedAt *time.Time
AcceptedByUserID *uuid.UUID
RevokedAt *time.Time
RevokedByUserID *uuid.UUID
}
func (OrganizationInvitation) Status ¶ added in v0.1.24
func (i OrganizationInvitation) Status(now time.Time) OrganizationInvitationStatus
type OrganizationInvitationStatus ¶ added in v0.1.24
type OrganizationInvitationStatus string
const ( OrganizationInvitationStatusPending OrganizationInvitationStatus = "pending" OrganizationInvitationStatusAccepted OrganizationInvitationStatus = "accepted" OrganizationInvitationStatusRevoked OrganizationInvitationStatus = "revoked" OrganizationInvitationStatusExpired OrganizationInvitationStatus = "expired" )
type OrganizationKind ¶ added in v0.1.24
type OrganizationKind string
const ( OrganizationKindPersonal OrganizationKind = "personal" OrganizationKindTeam OrganizationKind = "team" )
type OrganizationMember ¶ added in v0.1.25
type OrganizationMember struct {
User User
Membership OrganizationMembership
}
type OrganizationMembership ¶ added in v0.1.24
type OrganizationRole ¶ added in v0.1.24
type OrganizationRole string
const ( OrganizationRoleOwner OrganizationRole = "owner" OrganizationRoleAdmin OrganizationRole = "admin" OrganizationRoleMember OrganizationRole = "member" )
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.