Connect Snapchat to Auth0
Snapchat setup
- Visit the Snapchat Developer account page and sign up.
- Navigate to the Snap Kit Portal and create a new app in the Snapchat Developer Portal.
- You will need to pick the libraries you plan to use: Login Kit is required at the minimum. Ensure Login Kit is enabled for your app.
-
Generate a Confidential OAuth 2.0 Client ID and Client Secret and note:
- Client ID (OAuth client_id)
- Client Secret (OAuth client_secret)
-
Configure Redirect URIs:
- Redirect URL:
https://YOUR_AUTH0_DOMAIN/login/callback - Snapchat requires HTTPS for redirect URIs.
You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains. - Redirect URL:
-
Choose the Login Kit scopes:
https://auth.snapchat.com/oauth2/api/user.display_name- For user’s display namehttps://auth.snapchat.com/oauth2/api/user.external_id- For a unique user IDhttps://auth.snapchat.com/oauth2/api/user.bitmoji.avatar- Optional, for Bitmoji
- In the left hand panel, navigate to Versions > [Your App Name], scroll to the Login Kit section and add the redirect URIs.
Token Vault configuration example
To configure the Token Vault for your Snapchat connection, you can use the following code snippet in your application:Next steps
- To learn how to configure applications to access Token Vault, read Configure Token Vault.
- To learn how to get an access token to make a tool call, complete the Call other’s APIs on user’s behalf Quickstart.