Type Aliases
AuthChangeEvent
AuthChangeEvent:
"PASSWORD_RECOVERY" | "SIGNED_IN" | "SIGNED_OUT" | "TOKEN_REFRESHED" | "USER_UPDATED" | "USER_DELETED"
EmailOTPType
EmailOTPType:
"signup" | "invite" | "magiclink" | "recovery" | "email_change"
MobileOTPType
MobileOTPType:
"sms" | "phone_change"
PostgrestError
PostgrestError:
{ code: string; details: string; hint: string; message: string }
Type declaration
-
code: string
-
details: string
-
hint: string
-
message: string
PostgrestMaybeSingleResponse
Type Parameters
PostgrestResponse
PostgrestResponse<T>:
PostgrestResponseSuccess<T> | PostgrestResponseFailure
Type Parameters
PostgrestSingleResponse
PostgrestSingleResponse<T>:
PostgrestSingleResponseSuccess<T> | PostgrestResponseFailure
Type Parameters
Provider
Provider:
"apple" | "azure" | "bitbucket" | "discord" | "facebook" | "github" | "gitlab" | "google" | "keycloak" | "linkedin" | "notion" | "slack" | "spotify" | "twitch" | "twitter" | "workos"
RealtimeClientOptions
RealtimeClientOptions:
{ decode?: Function; encode?: Function; headers?: {}; heartbeatIntervalMs?: number; logger?: Function; longpollerTimeout?: number; params?: {}; reconnectAfterMs?: Function; timeout?: number; transport?: WebSocket }
Type declaration
-
Optional decode?: Function
-
Optional encode?: Function
-
Optional headers?: {}
-
Optional
heartbeatIntervalMs?: number
-
Optional logger?: Function
-
Optional
longpollerTimeout?: number
-
Optional params?: {}
-
Optional
reconnectAfterMs?: Function
-
Optional timeout?: number
-
Optional transport?: WebSocket
SupportedStorage
SupportedStorage:
PromisifyMethods<Pick<Storage, "getItem" | "setItem" | "removeItem">>
VerifyOTPParams
Error format
https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes