package
2.167.0+incompatible
Repository: https://github.com/supabase/auth.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
CountOtherUsers counts how many other users exist besides the one provided.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DetermineAccountLinking uses the provided data and database state to compute a decision on whether: - A new User should be created (CreateAccount) - A new Identity should be created (LinkAccount) with a UserID pointing to an existing user account - Nothing should be done (AccountExists) - It's not possible to decide due to data inconsistency (MultipleAccounts) and the caller should decide Errors signal failure in processing only, like database access errors.
No description provided by the author
FindAllSessionsForUser finds all of the sessions for a user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindIdentitiesByUserID returns all identities associated to a user ID.
FindIdentityById searches for an identity with the matching id and provider given.
No description provided by the author
FindProvidersByUser returns all providers associated to a user.
No description provided by the author
No description provided by the author
FindSessionByID looks up a Session by the provided id.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FindUserByConfirmationToken finds users with the matching confirmation token.
FindUserByConfirmationToken finds users with the matching confirmation token.
FindUserByEmailAndAudience finds a user with the matching email and audience.
FindUserByEmailChangeCurrentAndAudience finds a user with the matching email change and audience.
FindUserByEmailChangeNewAndAudience finds a user with the matching email change and audience.
FindUserByEmailChangeToken finds a user with the matching email change token.
FindUserByID finds a user matching the provided ID.
FindUserByPhoneAndAudience finds a user with the matching email and audience.
FindUserByPhoneChangeAndAudience finds a user with the matching phone change and audience.
FindUserByRecoveryToken finds a user with the matching recovery token.
FindUserForEmailChange finds a user requesting for an email change.
FindUsersInAudience finds users with the matching audience.
FindUserWithRefreshToken finds a user from the provided refresh token.
GetAccountLinkingDomain returns a string that describes the account linking domain.
GrantAuthenticatedUser creates a refresh token for the provided user.
GrantRefreshTokenSwap swaps a refresh token for a new one, revoking the provided token.
No description provided by the author
IsDuplicatedEmail returns whether a user exists with a matching email and audience.
IsDuplicatedPhone checks if the phone number already exists in the users table.
IsNotFoundError returns whether an error represents a "not found" error.
No description provided by the author
Logout deletes all sessions for a user.
LogoutAllExceptMe deletes all sessions for a user except the current one.
LogoutSession deletes the current session for a user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewIdentity returns an identity associated to the user's id.
No description provided by the author
No description provided by the author
No description provided by the author
NewUser initializes a new user from an email, password and user data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RevokeTokenFamily revokes all refresh tokens that descended from the provided token.
TruncateAll deletes all data from the database, as managed by GoTrue.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
AMREntry represents a method that a user has logged in together with the corresponding time.
AuditLogEntry is the database model for audit log entries.
No description provided by the author
ChallengeNotFoundError represents when a user is not found.
No description provided by the author
ConfirmationOrRecoveryTokenNotFoundError represents when a confirmation or recovery token is not found.
ConfirmationTokenNotFoundError represents when a confirmation token is not found.
No description provided by the author
FactorNotFoundError represents when a user is not found.
No description provided by the author
FlowStateNotFoundError represents an error when an FlowState can't be found.
GrantParams is used to pass session-specific parameters when issuing a new refresh token to authenticated users.
No description provided by the author
IdentityNotFoundError represents when an identity is not found.
No description provided by the author
No description provided by the author
No description provided by the author
RefreshToken is the database model for refresh tokens.
RefreshTokenNotFoundError represents when a refresh token is not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SAMLRelayStateNotFoundError represents an error when a SAML relay state can't be found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SSOProviderNotFoundError represents an error when a SSO Provider can't be found.
User respresents a registered user with email/password authentication.
No description provided by the author
UserNotFoundError represents when a user is not found.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author