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
OAuthOptions
OAuth sign-in options
OAuthResponse
OAuth response with authorization URL
Session
Authentication session containing user and tokens
User
User information from Supabase Auth

Enums§

AuthEvent
Authentication state event types
OAuthProvider
Supported OAuth providers

Type Aliases§

AuthStateCallback
Authentication state change callback