Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

§Classes

AuthApiError
AuthError
AuthImplicitGrantRedirectError
AuthInvalidCredentialsError
AuthInvalidJwtError
AuthInvalidTokenResponseError
AuthPKCEGrantCodeExchangeError
AuthRetryableFetchError
AuthSessionMissingError
AuthUnknownError
AuthWeakPasswordError

This error is thrown on certain methods when the password used is deemed weak. Inspect the reasons to identify what password strength rules are inadequate.

CustomAuthError
FunctionsError
FunctionsFetchError
FunctionsHttpError
FunctionsRelayError
GoTrueAdminApi
GoTrueClient
NavigatorLockAcquireTimeoutError
PostgrestError

Error format

RealtimeChannel

A channel is the basic building block of Realtime and narrows the scope of data flow to subscribed clients. You can think of a channel as a chatroom where participants are able to see who's online and send and receive messages.

RealtimeClient
RealtimePresence
SupabaseClient

Supabase Client.

WebSocketFactory

§Enums

FunctionRegion
REALTIME_LISTEN_TYPES
REALTIME_POSTGRES_CHANGES_LISTEN_EVENT
REALTIME_PRESENCE_LISTEN_EVENTS
REALTIME_SUBSCRIBE_STATES

§Variables

AuthAdminApi
AuthClient
createClient

Creates a new Supabase Client.

lockInternals
REALTIME_CHANNEL_STATES
SIGN_OUT_SCOPES

§Functions

isAuthApiError
isAuthError
isAuthImplicitGrantRedirectError
isAuthRetryableFetchError
isAuthSessionMissingError
isAuthWeakPasswordError
navigatorLock

Implements a global exclusive lock using the Navigator LockManager API. It is available on all browsers released after 2022-03-15 with Safari being the last one to release support. If the API is not available, this function will throw. Make sure you check availablility before configuring GoTrueClient.

processLock

Implements a global exclusive lock that works only in the current process. Useful for environments like React Native or other non-browser single-process (i.e. no concept of "tabs") environments.

§Interfaces

AdminUserAttributes
AMREntry

An authentication methord reference (AMR) entry.

AuthSession
AuthUser
GenerateLinkOptions
GoTrueAdminMFAApi

Contains the full multi-factor authentication administration API.

GoTrueAdminOAuthApi

Contains all OAuth client administration methods. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

GoTrueMFAApi

Contains the full multi-factor authentication API.

JWK
Session
Subscription
User
UserAppMetadata
UserAttributes
UserIdentity
UserMetadata
VerifyEmailOtpParams
VerifyMobileOtpParams
VerifyTokenHashParams
WebSocketLike
WebSocketLikeConstructor

§Type Aliases

AMRMethod
AuthChangeEvent
AuthChangeEventMFA
AuthenticatorAssuranceLevels
AuthFlowType
AuthMFAAdminDeleteFactorParams
AuthMFAAdminDeleteFactorResponse
AuthMFAAdminListFactorsParams
AuthMFAAdminListFactorsResponse
AuthMFAChallengePhoneResponse
AuthMFAChallengeResponse
AuthMFAChallengeTOTPResponse
AuthMFAChallengeWebauthnResponse

Response type for WebAuthn MFA challenge. Contains credential creation or request options from the server.

AuthMFAChallengeWebauthnResponseDataJSON

JSON-serializable version of WebAuthn challenge response. Used for server communication with base64url-encoded binary fields.

AuthMFAChallengeWebauthnServerResponse

Server response type for WebAuthn MFA challenge. Contains JSON-formatted WebAuthn options ready for browser API.

AuthMFAEnrollPhoneResponse
AuthMFAEnrollResponse
AuthMFAEnrollTOTPResponse
AuthMFAEnrollWebauthnResponse

Response type for WebAuthn factor enrollment. Returns the enrolled factor ID and metadata.

AuthMFAGetAuthenticatorAssuranceLevelResponse
AuthMFAListFactorsResponse

response of ListFactors, which should contain all the types of factors that are available, this ensures we always include all

AuthMFAUnenrollResponse
AuthMFAVerifyResponse

Response type for MFA verification operations. Returns session tokens on successful verification.

AuthMFAVerifyResponseData

Data returned after successful MFA verification. Contains new session tokens and updated user information.

AuthOtpResponse

AuthOtpResponse is returned when OTP is used.

AuthResponse
AuthResponsePassword
AuthTokenResponse
AuthTokenResponsePassword
CallRefreshTokenResult
CreateOAuthClientParams

Parameters for creating a new OAuth client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

EmailOtpType
EthereumWallet
EthereumWeb3Credentials
Factor

A MFA factor.

FactorType

Type of factor. totp and phone supported with this version

FunctionInvokeOptions
GenerateEmailChangeLinkParams
GenerateInviteOrMagiclinkParams
GenerateLinkParams
GenerateLinkProperties

The properties related to the email link generated

GenerateLinkResponse
GenerateLinkType
GenerateRecoveryLinkParams
GenerateSignupLinkParams
GoTrueClientOptions
InitializeResult
JwtHeader
JwtPayload
LockFunc

Provide your own global lock implementation instead of the default implementation. The function should acquire a lock for the duration of the fn async function, such that no other client instances will be able to hold it at the same time.

MFAChallengeAndVerifyParams
MFAChallengeParams
MFAChallengePhoneParams
MFAChallengeTOTPParams
MFAChallengeWebauthnParams

Parameters for initiating a WebAuthn MFA challenge. Includes Relying Party information needed for WebAuthn ceremonies.

MFAEnrollParams
MFAEnrollPhoneParams
MFAEnrollTOTPParams
MFAEnrollWebauthnParams

Parameters for enrolling a WebAuthn factor. Creates an unverified WebAuthn factor that must be verified with a credential.

MFATOTPChannel
MFAUnenrollParams
MFAVerifyParams
MFAVerifyPhoneParams
MFAVerifyTOTPParams
MFAVerifyWebauthnParamFields

WebAuthn-specific fields for MFA verification. Supports both credential creation (registration) and request (authentication) flows.

MFAVerifyWebauthnParams

Parameters for WebAuthn MFA verification. Used to verify WebAuthn credentials after challenge.

MobileOtpType
OAuthClient

OAuth client object returned from the OAuth 2.1 server. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientGrantType

OAuth client grant types supported by the OAuth 2.1 server. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientListResponse

Response type for listing OAuth clients. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientRegistrationType

OAuth client registration type. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientResponse

Response type for OAuth client operations. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientResponseType

OAuth client response types supported by the OAuth 2.1 server. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthClientType

OAuth client type indicating whether the client can keep credentials confidential. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

OAuthResponse
PageParams
Pagination
PostgrestMaybeSingleResponse
PostgrestResponse
PostgrestSingleResponse
Prettify

Resolve mapped types and show the derived keys and their types when hovering in VS Code, instead of just showing the names those mapped types are defined with.

Provider

One of the providers supported by GoTrue.

QueryData
QueryError
QueryResult

Helper types for query results.

RealtimeChannelOptions
RealtimeChannelSendResponse
RealtimeClientOptions
RealtimeMessage
RealtimePostgresChangesFilter
RealtimePostgresChangesPayload
RealtimePostgresDeletePayload
RealtimePostgresInsertPayload
RealtimePostgresUpdatePayload
RealtimePresenceJoinPayload
RealtimePresenceLeavePayload
RealtimePresenceState
RealtimeRemoveChannelResponse
RequestResult

a shared result type that encapsulates errors instead of throwing them, allows you to optionally specify the ErrorType

RequestResultSafeDestructure

similar to RequestResult except it allows you to destructure the possible shape of the success response {@see RequestResult}

RequiredClaims
ResendParams
SignInAnonymouslyCredentials
SignInWithIdTokenCredentials
SignInWithOAuthCredentials
SignInWithPasswordCredentials
SignInWithPasswordlessCredentials
SignInWithSSO
SignOut
SignOutScope
SignUpWithPasswordCredentials
SolanaWallet
SolanaWeb3Credentials
SSOResponse
StrictOmit

A stricter version of TypeScript's Omit that only allows omitting keys that actually exist. This prevents typos and ensures type safety at compile time. Unlike regular Omit, this will error if you try to omit a non-existent key.

SupabaseClientOptions
SupportedStorage
UserResponse
VerifyOtpParams
WeakPassword
WeakPasswordReasons
Web3Credentials