Skip to main content
The Supabase integration enables multiple authentication methods while maintaining a consistent user identity.

How it works

FunnelFox authenticates users directly within your funnels, giving each user a stable Supabase UID. It will either:
  • Create a new Supabase user (sign up): If no user exists for the customer’s credentials.
  • Authenticate an existing Supabase user (sign in): If the user was created during a previous funnel experience and signs in using an OAuth button.
Once the user is authenticated, your app takes over the in-app authentication flow.

Email & Password authentication

Email-based authentication occurs when the customer navigates from the authentication screen with email/password inputs filled out. Sign up: When a customer submits their credentials in a funnel, FunnelFox automatically handles Supabase user creation:
  • FunnelFox creates a Supabase user with email and password-based authentication.
  • By default, a secure random password is generated for the user.
  • If the same screen includes a Password input element, that value replaces the generated password.
For the Email/Password sign up, we recommend using the Password input element. If you rely on the generated random password, it won’t be accessible to the user — so you’ll need to implement a password reset flow during the in-app authentication step.
Sign in: Email-based sign in is not currently supported. This feature is under development.

OAuth authentication

Unlike email/password authentication, OAuth works right when the customer uses the OAuth button. OAuth providers enable seamless social authentication within your funnels:
  • Enable OAuth providers (e.g., Google or Apple) in Supabase and add OAuth buttons in the Visual Editor.
  • Users receive a secure and seamless authentication experience:
    • If it’s the user’s first time, Supabase creates the account.
    • If the account already exists, Supabase signs them in using the same OAuth buttons.

User identification

The Supabase UID serves as the canonical identifier for each authenticated user within FunnelFox. It is stored on the user’s profile and available to your app after authentication.

Setup

Complete the Supabase integration by creating a Supabase project and connecting it to FunnelFox.
Only one authentication integration can be enabled at a time. If you have the Firebase integration enabled, disable it first in Integrations > Firebase before continuing.

1. Create Supabase project

Start by setting up a new project in the Supabase dashboard.
  1. Click + New project.
  1. Name your project and set a database password.
  2. Click Create new project.

2. Configure auth providers

Email/Password is enabled by default and requires no additional setup. Select an OAuth provider to configure.
Google OAuth provides seamless authentication using Google accounts. You’ll configure your Google Cloud console to authorize your FunnelFox domain, then enable the provider in Supabase.You need an existing project in the Google Cloud console. If you don’t have one, create it before continuing.Google Cloud console configuration
You will need your full project URL for this step. Go to Settings > Domains in your FunnelFox project and copy your project URL, e.g. https://demo-app.fnlfx.com.
  1. Go to APIs & Services > Credentials from the Quick access section.
APIs and Services
  1. Open the web client auto-created by Google Service under OAuth 2.0 Client IDs.
Web client
  1. Click Add URL twice under Authorized JavaScript origins, and set up the following two fields:
    • Paste your full project URL.
    • Paste https://app.funnelfox.com.
Project URL
  1. Click Add URL twice under Authorized redirect URIs, and set up the following two fields:
    • Paste your full project URL + /__/auth/handler. Your final URL will look like https://demo-app.fnlfx.com/__/auth/handler.
    • Paste https://app.funnelfox.com/__/auth/handler.
Redirect URL
  1. Copy your Client ID under Additional information at the top right.
Supabase configuration
  1. Go to Authentication > Sign In / Providers in your Supabase project.
  1. Select Google under Auth Providers.
  2. Toggle on Enable Sign in with Google.
  3. Paste your Client ID into the Client IDs field.
  4. Go back to your Google Cloud console and click + Add secret under Client secrets.
  5. Copy your new client secret.
  6. Go back to Supabase and paste the secret into Client Secret (for OAuth).
  7. Click Save.
  8. Copy the Callback URL (for OAuth).
  9. Go back to the Authorized redirect URIs in Google Cloud console and add one more URI with the callback URL from Supabase.
  10. Click Save.
  11. Go to Authentication > URL Configuration in Supabase and make sure the following domains are added under Redirect URLs:
  • Your full project URL.
  • https://app.funnelfox.com
  • Your custom domains (if any).

3. Connect Supabase to FunnelFox

Retrieve your project credentials from Supabase and add them to FunnelFox.
  1. In your Supabase project, hover over your project URL in the top navigation. You will see your Project URL and Publishable Key.
  1. Copy the Project URL.
  1. Go to Integrations > Supabase in FunnelFox.
  2. Paste the URL into the Supabase Project URL field.
  1. Go back to your Supabase project and copy the Publishable Key.
  1. Paste the key into the Supabase API Key field in FunnelFox.
  1. Click Save changes.
You successfully integrated Supabase! Add the authentication methods you’ve set up to your funnels in the Visual Editor.

Add authentication to funnels

Once Supabase is configured, you can add authentication flows to your funnels using the Visual Editor. The following authentication methods correspond to the ones you’ve set up in Supabase. The same OAuth buttons serve both authentication methods: sign up and sign in.

Email/Password authentication

Enable users to authenticate with their email address and custom password. To add Email/Password authentication to your funnel:
  1. In the Visual Editor, add a screen for user registration.
  2. Go to Add element > Inputs and add both Email and Password inputs.
By default, FunnelFox generates a random password when a user submits their email in the funnel. It’s important to add the Password input on the same screen to replace the previously generated password with the one provided.

OAuth authentication

Enable seamless OAuth authentication using Google or Apple accounts for a frictionless user experience. To add OAuth authentication to your funnel:
  1. In the Visual Editor, add a screen for user registration or use the one you’ve already added for Email/Password.
  2. Click Add element > Authentication and select OAuth button.
  3. Go to the Element tab of the OAuth button.
  4. Select OAuth provider.
  5. Under Actions, set up user navigation for cases when authentication succeeds or fails.
Learn more about setting up navigation actions.