Module

Supabase.Auth.Types

Package
purescript-supabase
Repository
i-am-the-slime/purescript-supabase

#otpTypeToString Source

#User Source

type User = { app_metadata :: Foreign, aud :: String, created_at :: Timestamp, email :: UserEmail, id :: UserId, role :: String, updated_at :: Timestamp, user_metadata :: Foreign }

#Session Source

type Session = { access_token :: AccessToken, expires_at :: Int, expires_in :: Int, refresh_token :: RefreshToken, token_type :: String, user :: User }

#AuthResult Source

type AuthResult = { session :: Maybe Session, user :: Maybe User }

#AuthResponse Source

type AuthResponse = { data :: AuthResult, error :: Maybe AuthError }

#AuthError Source

type AuthError = { message :: String, status :: Maybe Int }