Social Auth
GitHub
Learn how to configure GitHub OAuth for authentication in your Floot app.
GitHub Developer Settings
Register a new OAuth app
Go to OAuth apps page → New OAuth App
- Application name > give a meaningful name
- Homepage URL > type the full URL to your app's website
- Authorization callback URL > options:
http://127.0.0.1:54321/auth/v1/callback
https://<project-id>.supabase.co/auth/v1/callback
https://<your.domain>:54321/auth/v1/callback
- Enable Device Flow > unchecked
→ Register application
Get Credentials
Open your created OAuth app
Client ID
Copy and save your Client ID
Client Secret
- Click
Generate a new client secret
- Copy and save your Client secret
When using Supabase Cloud, register the Client ID and Secret that will be using your Supabase project in the GitHub provider configuration in the Supabase dashboard.
Floot App Setup
Environment Variables
Set your credentials in the following environment variables:
# The client ID of the GitHub OAuth application.
OAUTH_GITHUB_CLIENT_ID=
# The client secret of the GitHub OAuth application.
OAUTH_GITHUB_SECRET=
Enable GitHub provider in your Supabase config.
# Enable GitHub login in Supabase.
[auth.external.github]
enabled = true
OAuth deep link redirection
GitHub login with Supabase is done through the OAuth method.
This method of signing in is web based, and will open a browser window to perform the sign in. For non-web platforms, the user is brought back to the app via deep linking.
→ Setup OAuth redirection by following this guide!