Module
Supabase.Auth
- Package
- purescript-supabase
- Repository
- i-am-the-slime/purescript-supabase
#FunctionResponse Source
type FunctionResponse d = { data :: Maybe d, error :: Maybe { message :: String } }#SignInWithOAuthOptions Source
type SignInWithOAuthOptions :: Row Typetype SignInWithOAuthOptions = (options :: { queryParams :: Foreign, redirectTo :: String, scopes :: String }, provider :: OAuthProvider)
#exchangeCodeForSession Source
exchangeCodeForSession :: AuthCode -> Client -> Aff AuthResponse#functionsSetAuth Source
functionsSetAuth :: AccessToken -> Client -> Effect Unit#invoke Source
invoke :: forall t body headers. ReadForeign t => WriteForeign body => WriteForeign headers => FunctionName -> body -> headers -> Client -> Aff (FunctionResponse t)#refreshSession Source
refreshSession :: Client -> Aff AuthResponse#setSession Source
setSession :: { access_token :: AccessToken, refresh_token :: RefreshToken } -> Client -> Aff AuthResponse#signInWithEmail Source
signInWithEmail :: { email :: UserEmail, password :: UserPassword } -> Client -> Aff AuthResponse#signInWithIdToken Source
signInWithIdToken :: { provider :: OAuthProvider, token :: IdToken } -> Client -> Aff AuthResponse#signInWithOAuth Source
signInWithOAuth :: forall opts thru. Union opts thru SignInWithOAuthOptions => WriteForeign (Record opts) => Record opts -> Client -> Aff { data :: { provider :: OAuthProvider, url :: Maybe String }, error :: Maybe AuthError }#signInWithPhone Source
signInWithPhone :: { password :: UserPassword, phone :: UserPhone } -> Client -> Aff AuthResponse#signUpWithEmail Source
signUpWithEmail :: { email :: UserEmail, password :: UserPassword } -> Client -> Aff AuthResponse#signUpWithPhone Source
signUpWithPhone :: { password :: UserPassword, phone :: UserPhone } -> Client -> Aff AuthResponse#sendOtpToEmail Source
sendOtpToEmail :: { email :: UserEmail } -> Client -> Aff AuthResponse#sendOtpToPhone Source
sendOtpToPhone :: { phone :: UserPhone } -> Client -> Aff AuthResponse#updateUser Source
updateUser :: forall r. WriteForeign (Record r) => Record r -> Client -> Aff AuthResponse#verifyEmailOtp Source
verifyEmailOtp :: { email :: UserEmail, token :: OTPToken, type :: OTPType } -> Client -> Aff AuthResponse#verifyPhoneOtp Source
verifyPhoneOtp :: { phone :: UserPhone, token :: OTPToken, type :: OTPType } -> Client -> Aff AuthResponseRe-exports from Supabase.Auth.Types
#UserPassword Source
#Session Source
type Session = { access_token :: AccessToken, expires_at :: Int, expires_in :: Int, refresh_token :: RefreshToken, token_type :: String, user :: User }#RefreshToken Source
#OAuthProvider Source
#AuthResponse Source
type AuthResponse = { data :: AuthResult, error :: Maybe AuthError }#AccessToken Source
#otpTypeToString Source
otpTypeToString :: OTPType -> String- Modules
- Codegen
- LSP.
Context - LSP.
SchemaParser - LSP.
Server - Supabase
- Supabase.
Auth - Supabase.
Auth. Types - Supabase.
AuthHelpers - Supabase.
Filter - Supabase.
Realtime - Supabase.
Realtime. ListenType - Supabase.
Realtime. SubscribeStates - Supabase.
SSR - Supabase.
Select - Supabase.
Storage - Supabase.
Supabase - Supabase.
Types - Supabase.
UUID - Supabase.
Util