Documentation Index
Fetch the complete documentation index at: https://docs.authportal.dev/llms.txt
Use this file to discover all available pages before exploring further.
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 callauthPortalsignInWithRedirect:
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