Kit
Setup Authentication

Setup Authentication

Email

By default, Xellar Kit enables email authentication.

Social Providers

Google

  1. Follow instruction on how to configure Google OAuth
  2. Add the googleClientId to the XellarKitProvider component
<XellarKitProvider googleClientId="YOUR_GOOGLE_CLIENT_ID">
   {children}
</XellarKitProvider>

Telegram

  1. Follow instruction on how to configure Telegram
  2. Add the telegramConfig to the XellarKitProvider component
<XellarKitProvider telegramConfig={{
   botId: "YOUR_TELEGRAM_BOT_ID",
   botUsername: "YOUR_TELEGRAM_BOT_USERNAME",
}}>
   {children}
</XellarKitProvider>

Apple

  1. Follow instruction on how to configure Apple
  2. Add the appleLoginConfig to the XellarKitProvider component
<XellarKitProvider appleLoginConfig={{
   clientId: "YOUR_APPLE_CLIENT_ID",
   redirectUri: "YOUR_REDIRECT_URI",
}}>
   {children}
</XellarKitProvider>

Whatsapp

  1. Follow instruction on how to configure Whatsapp
  2. Add the enableWhatsappLogin to the XellarKitProvider component
<XellarKitProvider enableWhatsappLogin={true}>
   {children}
</XellarKitProvider>