Social Login

This documentation provides guidance on configuring, enabling, and managing Social Login in your application.

Supported Social Providers

The system currently supports these providers:

  • Google

  • Facebook

And uses the following provider enum:

src/enum.ts
/** Social auth type enum */
export enum SocialAuthType {
  CORE = 'core', // Will be implemented in future releases
  SUPABASE = 'supabase',
  FIREBASE = 'firebase'
}

Note: The CORE provider is not implemented yet. It may be included in future updates.


Configuration

To enable or disable social login, update the provider configuration in your project's config.

Example:

src/config.ts
export const SOCIAL_AUTH_PROVIDER: SocialAuthType | undefined = undefined;
// or
export const SOCIAL_AUTH_PROVIDER: SocialAuthType | undefined = SocialAuthType.FIREBASE;
// or
export const SOCIAL_AUTH_PROVIDER: SocialAuthType | undefined = SocialAuthType.SUPABASE;
  • If SOCIAL_AUTH_PROVIDER is undefined, all social login functions will be disabled.

  • If set to firebase or supabase, corresponding provider functions will load.


Environment Variables

Social login features require environment variables.

Note: You may use either environment variables or a JSON certificate file for Firebase configuration.


Supabase Social Login Setup

Firebase Social Login Setup

Last updated