Module auth

Source
Expand description

Authentication module for Supabase client

This module provides comprehensive authentication functionality including:

  • Email/password authentication
  • OAuth providers (Google, GitHub, Discord, Apple, etc.)
  • Phone/SMS authentication
  • Magic link authentication
  • Anonymous authentication
  • Session management and token refresh
  • Auth state change events

Structs§

Auth
Authentication client for handling user sessions and JWT tokens
AuthEventHandle
Authentication event listener handle
AuthResponse
Response from authentication operations
EnhancedPhoneNumber
Enhanced phone number with country code support
EnhancedSession
Enhanced session with MFA and advanced token info
MfaChallenge
MFA challenge information
MfaFactor
MFA factor configuration
MfaVerificationRequest
MFA verification request
OAuthOptions
OAuth sign-in options
OAuthResponse
OAuth response with authorization URL
Session
Authentication session containing user and tokens
TokenMetadata
OAuth token metadata for advanced management
TotpSetupResponse
TOTP setup response containing QR code data
User
User information from Supabase Auth

Enums§

AuthEvent
Authentication state event types
MfaChallengeStatus
MFA challenge status
MfaMethod
Multi-factor authentication method types
OAuthProvider
Supported OAuth providers

Type Aliases§

AuthStateCallback
Authentication state change callback