Authenticate with Snap Login Kit
Made by Snap Inc.
Signs in using Snapchat as the identity provider.
How this extension works
Use this extension to allow your community of users to authenticate with Firebase using their Snapchat accounts. Snapchat has a massive reach, with millions of people using the app daily. Logging in via Snapchat allows you to tap into this audience, providing a quick and easy way for your users to sign up, log in, and avoid any obstacles.
This extension is meant to allow users to authenticate with Firebase using Snapchat as the identity provider. If you do not intend to use Firebase authentication, but still want to use Snapchat as an identity provider, please use Snap Kit’s Login Kit.
To get started, there are a few steps you will need to follow in order to set up, install, and integrate with this extension. This process is described in detail on our website. Please see Snap Kit iOS Login Kit Firebase Extension Setup or Snap Kit Android Login Kit Firebase Extension Setup for more information.
This extension uses other Firebase or Google Cloud Platform services which may have associated charges:
- Cloud Functions
- Firebase Authentication
- Secret Manager
This extension also uses the following third-party services:
- Snap Login Kit (pricing information)
You are responsible for any costs associated with your use of these services.
What you can configure
- Custom authentication token signing service account
- Snapchat Dev Portal App ID
- Snapchat Confidential OAuth 2.0 client ID
- The ID of the secret in Google Cloud Secret Manager that stores the OAuth 2.0 client secret
- Flag indicating if Snapchat user deletion request should be handled.
- Cloud Functions location
Type: Cloud Function
Description: HTTP request-triggered function that responds with a Firebase custom token containing Snapchat external user ID as a claim.
Type: Cloud Function
Description: HTTP request-triggered function that responds to Snapchat webhook notifications to update users.
How to install this extension
Using the Firebase console
To install and manage extensions, you can use the Firebase console.Install using console
Using the Firebase CLI
To install and manage extensions, you can also use the Firebase CLI:
Step 1: Run the following npm command to install the CLI or update to the latest CLI version.
npm install -g firebase-toolsDoesn't work? Take a look at the Firebase CLI reference or change your npm permissions.
Step 2: Set up a new Firebase project directory or navigate to an existing one
Step 3: Add this extension to your extension manifest by running
firebase ext:install snap/snapchat-login --local --project=projectId_or_alias
Step 4 (Optional): Test this extension locally with the Firebase Emulator Suite
Step 5: Deploy the extensions in your manifest to your project
firebase deploy --only extensions --project=projectId_or_alias