Skip to main content
Work in progress! AuthPortal is not ready for production use yet. Join our Discord to receive support setting up AuthPortal, you will need it!

Step 1. Sign up for a account

Visit the Dashboard to create an account and obtain your client ID and domain.

Step 2. Install the client SDK

Install the AuthPortal for Firebase SDK via your package manager:

Step 3. Initialize the library

Create a new AuthPortal instance and export the result so you can use it in your app.
authPortal.js

Step 4: Add a sign-in button

Create a button somewhere on your site to call authPortalsignInWithRedirect: The implementation depends on your UI library, here’s an example for React:
LoginButton.js

Step 4: Handle Redirects

Create a page under /signin-authportal (you can change the redirect_path to your liking). On this page, call authPortal.getRedirectResult:
pages/signin-authportal.js