The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Cleans up the Auth Guides
Paul Copplestone94dc49d522c5
diff --git a/web/docs/guides/auth/auth-apple.mdx b/web/docs/guides/auth/auth-apple.mdxindex d5dc6be50b1..c44d98ccf1e 100644--- a/web/docs/guides/auth/auth-apple.mdx+++ b/web/docs/guides/auth/auth-apple.mdx@@ -7,6 +7,10 @@ description: Add Apple OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable Apple Auth for your project, you need to set up an Apple OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Apple OAuth consists of six broad steps:* Obtaining an `App Id` with “Sign In with Apple” capabilities.@@ -18,12 +22,12 @@ Apple OAuth consists of six broad steps:## Steps-### Log into your Apple Developer Account+### Access your Apple Developer account- Go to [developer.apple.com](https://developer.apple.com).- Click on `Account` at the top right to log in.-### Obtain an App Id with “Sign In with Apple” capabilities.+### Obtain an App Id- Go to `Certificates, Identifiers & Profiles`.- Click on `Identifiers` at the left.@@ -52,24 +56,26 @@ This will serve as the `cliend_id` when you make API calls to authenticate the u- Click `Continue` at the top right.- Click `Register` at the top right.-#### Configure your Services ID+### Find your callback URL++In the next step you require a callback URL, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.++### Configure your Services ID- Under `Identifiers`, click on your newly-created Services ID.- Check the box next to `Sign In With Apple` to enable it.- Click `Configure` to the right.- Make sure your newly created Bundle ID is selected under `Primary App ID`- Add your domain to the `Domains and Subdomains` box (do not add `https://`, just add the domain).-- In the `Return URLs` box, type the callback URL of your app.- - Your `Return URL` (OAuth Redirect URI) looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL.- - Go to your [Supasebase Project Dashboard](https://supabase.io).- - Click on the `Settings` icon at the bottom of the left sidebar.- - Click on `API` in the list.- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.- - Enter this in the `Return URLs` box.- - Click `Next` at the bottom right.+- In the `Return URLs` box, type the callback URL of your app which you found in the previous step and click `Next` at the bottom right.- Click `Done` at the bottom.- Click `Continue` at the top right.- Click `Save` at the top right.@@ -139,20 +145,18 @@ puts token```1. Edit the `secret_gen.rb` file:- - `key_file` = "Path to the private key you downloaded from Apple". It should look like this: `AuthKey_XXXXXXXXXX.p8`.- - `team_id` = "Your Team ID". This is found at the top right of the Apple Developer site (next to your name).- - `client_id` = "The Service ID of the service you created". This is the `Services ID` you created in the above step `Obtain a Services ID`.- - If you've lost this ID, you can find it in the Apple Developer Site:- - Go to `Certificates, Identifiers & Profiles`.- - Click `Identifiers` at the left.- - At the top right drop-down, select `Services IDs`.- - Find your Identifier in the list (i.e. app.com.acme.roadrunner).- - `key_id` = "The Key ID of the private key". This can be found in the name of your downloaded secret file (For a file named `AuthKey_XXXXXXXXXX.p8` your key_id is `XXXXXXXXXX`).- - If you've lost this ID, you can find it in the Apple Developer Site:- - Go to `Certificates, Identifiers & Profiles`.- - Click `Keys` at the left.- - Click on your newly-created key in the list.- - Look under `Key ID` to find your key_id.+- `key_file` = "Path to the private key you downloaded from Apple". It should look like this: `AuthKey_XXXXXXXXXX.p8`.+- `team_id` = "Your Team ID". This is found at the top right of the Apple Developer site (next to your name).+- `client_id` = "The Service ID of the service you created". This is the `Services ID` you created in the above step `Obtain a Services ID`. If you've lost this ID, you can find it in the Apple Developer Site:+ - Go to `Certificates, Identifiers & Profiles`.+ - Click `Identifiers` at the left.+ - At the top right drop-down, select `Services IDs`.+ - Find your Identifier in the list (i.e. app.com.acme.roadrunner).+- `key_id` = "The Key ID of the private key". This can be found in the name of your downloaded secret file (For a file named `AuthKey_XXXXXXXXXX.p8` your key_id is `XXXXXXXXXX`). If you've lost this ID, you can find it in the Apple Developer Site:+ - Go to `Certificates, Identifiers & Profiles`.+ - Click `Keys` at the left.+ - Click on your newly-created key in the list.+ - Look under `Key ID` to find your key_id.2. From the command line, run: `ruby secret_gen.rb > client_secret.txt`.3. Your `client_secret` is now stored in this `client_secret.txt` file.diff --git a/web/docs/guides/auth/auth-bitbucket.mdx b/web/docs/guides/auth/auth-bitbucket.mdxindex e5205b2bd39..bbf731674a5 100644--- a/web/docs/guides/auth/auth-bitbucket.mdx+++ b/web/docs/guides/auth/auth-bitbucket.mdx@@ -7,6 +7,11 @@ description: Add Bitbucket OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';++To enable Bitbucket Auth for your project, you need to set up a BitBucket OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up Bitbucket logins for your application consists of 3 parts:* Create and configure a Bitbucket OAuth Consumer on [Bitbucket](https://bitbucket.org)@@ -15,6 +20,18 @@ Setting up Bitbucket logins for your application consists of 3 parts:## Steps+### Find your callback URL++In the next step you require a callback URL, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.+### Create a Bitbucket OAuth app- Click on your profile icon at the bottom left@@ -23,20 +40,10 @@ Setting up Bitbucket logins for your application consists of 3 parts:- Click on `Settings` on the left- Click on `OAuth consumers` on the left under `Apps and Features` (near the bottom)- Click `Add Consumer` at the top-- Enter your app data- - Enter the name of your app under `Name`-- In `Callback URL`, type the callback URL of your app.- - Your OAuth Redirect URI (`Callback URL`) looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL- - Go to your [Supasebase Project Dashboard](https://supabase.io)- - Click on the `Settings` icon at the bottom of the left sidebar- - Click on `API` in the list- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard- - Now just add `/auth/v1/callback` to the end of that to get your full "OAuth Redirect URI"- - Enter this in the `Callback URL` box- - Check the permissions you need (Email, Read should be enough)- - Click `Save` at the bottom+- Enter the name of your app under `Name`+- In `Callback URL`, type the callback URL of your app+- Check the permissions you need (Email, Read should be enough)+- Click `Save` at the bottom- Click on your app name (the name of your new OAuth Consumer)- Copy your `Key` (`client_key`) and `Secret` (`client_secret`) codesdiff --git a/web/docs/guides/auth/auth-facebook.mdx b/web/docs/guides/auth/auth-facebook.mdxindex 9139e421401..cc542294756 100644--- a/web/docs/guides/auth/auth-facebook.mdx+++ b/web/docs/guides/auth/auth-facebook.mdx@@ -7,6 +7,10 @@ description: Add Facebook OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable Facebook Auth for your project, you need to set up a Facebook OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up Facebook logins for your application consists of 3 parts:* Create and configure a Facebook Application on the [Facebook Devalopers Site](https://developers.facebook.com)@@ -27,6 +31,19 @@ First, you'll need a Developer Account at [developers.facebook.com](https://deve- Fill in your app information, then click `Create App`.- This should bring you to the screen: `Add Products to Your App`. (Alternatively you can click on `Add Product` in the left sidebar to get to this screen.)++### Find your callback URI++In the next step you require a callback URI, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.+### Set up FaceBook Login for your Facebook AppFrom the `Add Products to your App` screen:@@ -34,16 +51,8 @@ From the `Add Products to your App` screen:- Click `Setup` under `Facebook Login`- Skip the Quickstart screen, instead, in the left sidebar, click `Settings` under `Facebook Login`- Enter your callback URI under `Valid OAuth Redirect URIs` on the `Facebook Login Settings` page- - Your OAuth Redirect URI looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL- - Go to your [Supasebase Project Dashboard](https://supabase.io)- - Click on the `Settings` icon at the bottom of the left sidebar- - Click on `API` in the list- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`- - Enter this in the `Valid OAuth Redirect URIs` box- - Click `Save Changes` at the bottom right+- Enter this in the `Valid OAuth Redirect URIs` box+- Click `Save Changes` at the bottom right### Copy your Facebook App ID and Secretdiff --git a/web/docs/guides/auth/auth-github.mdx b/web/docs/guides/auth/auth-github.mdxindex 80acb0395bc..2fbc23a8134 100644--- a/web/docs/guides/auth/auth-github.mdx+++ b/web/docs/guides/auth/auth-github.mdx@@ -7,6 +7,10 @@ description: Add GitHub OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable GitHub Auth for your project, you need to set up a GitHub OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up GitHub logins for your application consists of 3 parts:* Create and configure a GitHub OAuth App on [GitHub](https://github.com)@@ -24,30 +28,33 @@ Go to the [GitHub Developer Settings](https://github.com/settings/developers) pa- In the left sidebar, click `Developer settings` (near the bottom)- In the left sidebar, click `OAuth Apps`-Register a new OAuth application+### Find your callback URL++In the next step you require a callback URL, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.++### Register a new OAuth application-- Click `Register a new application`- - (If you've created an app before, click `New OAuth App` here)+- Click `Register a new application`. If you've created an app before, click `New OAuth App` here.- In `Application name`, type the name of your app.- In `Homepage URL`, type the full URL to your app's website.- In `Authorization callback URL`, type the callback URL of your app.- - Your OAuth Redirect URI looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL- - Go to your [Supasebase Project Dashboard](https://supabase.io)- - Click on the `Settings` icon at the bottom of the left sidebar- - Click on `API` in the list- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`- - Enter this in the `Valid OAuth Redirect URIs` box- - Click `Save Changes` at the bottom right-- Click `Register Application`+- Enter the URL in the `Valid OAuth Redirect URIs` box.+- Click `Save Changes` at the bottom right.+- Click `Register Application`.Copy your new OAuth credentials-- Copy and save your `Client ID`-- Click `Generate a new client secret`-- Copy and save your `Client secret`+- Copy and save your `Client ID`.+- Click `Generate a new client secret`.+- Copy and save your `Client secret`.### Enter your GitHub credentials into your Supabase Projectdiff --git a/web/docs/guides/auth/auth-gitlab.mdx b/web/docs/guides/auth/auth-gitlab.mdxindex cb053f71368..7803c572769 100644--- a/web/docs/guides/auth/auth-gitlab.mdx+++ b/web/docs/guides/auth/auth-gitlab.mdx@@ -7,6 +7,10 @@ description: Add GitLab OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable GitLab Auth for your project, you need to set up a GitLab OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up GitLab logins for your application consists of 3 parts:* Create and configure a GitLab Application on [GitLab](https://gitlab.com)@@ -15,27 +19,29 @@ Setting up GitLab logins for your application consists of 3 parts:## Steps+### Find your callback URL++In the next step you require a callback URL, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.+### Create your GitLab Application- Click on your `profile logo` (avatar) in the top-right corner- Select `Edit profile`.- In the left sidebar, select Applications.-- Enter your app information- - Enter the name of the application- - In the `Redirect URI` box, type the callback URL of your app.- - Your `Redirect URI` (`Callback URL`) looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL- - Go to your [Supasebase Project Dashboard](https://supabase.io)- - Click on the `Settings` icon at the bottom of the left sidebar- - Click on `API` in the list- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`- - Enter this in the `Redirect URI` box- - Check the box next to `Confidential` (make sure it is checked)- - Check the scope named `read_user` (this is the only required scope)- - Click `Save Application` at the bottom- - Copy and save your `Application ID` (`client_id`) and `Secret` (`client_secret`) which you'll need later+- Enter the name of the application+- In the `Redirect URI` box, type the callback URL of your app.+- Check the box next to `Confidential` (make sure it is checked)+- Check the scope named `read_user` (this is the only required scope)+- Click `Save Application` at the bottom+- Copy and save your `Application ID` (`client_id`) and `Secret` (`client_secret`) which you'll need later### Add your GitLab credentials into your Supabase Projectdiff --git a/web/docs/guides/auth/auth-google.mdx b/web/docs/guides/auth/auth-google.mdxindex efc3254636e..a634fc326ba 100644--- a/web/docs/guides/auth/auth-google.mdx+++ b/web/docs/guides/auth/auth-google.mdx@@ -7,6 +7,10 @@ description: Add Google OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable Google Auth for your project, you need to set up a Google OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up Google logins for your application consists of 3 parts:* Create and configure a Google Project on the [Google Cloud Platform Console](https://console.cloud.google.com/home/dashboard)@@ -32,40 +36,44 @@ First, you'll need an Account at [Google Cloud Platform](https://console.cloud.gFrom your project's dashboard screen:-- In the search bar at the top labelled `Search products and resources` type `OAuth`-- Click on `OAuth consent screen` from the list of results-- On the `OAuth consent screen` page select `External`-- Click `Create`+- In the search bar at the top labelled `Search products and resources` type `OAuth`.+- Click on `OAuth consent screen` from the list of results.+- On the `OAuth consent screen` page select `External`.+- Click `Create`.++### Edit your app information++- On the `Edit app registration` page fill out your app information.+- Click `Save and continue` at the bottom.++### Find your callback URL++In the next step you require a callback URL, which looks like this:-Edit your app information+`https://<project-ref>.supabase.co/auth/v1/callback`-- On the `Edit app registration` page fill out your app information-- Click `Save and continue` at the bottom+- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.-Create your credentials+### Create your credentials- Click `Credentials` at the left to go to the `Credentials` page- Click `Create Credentials` near the top then select `OAuth client ID`- On the `Create OAuth client ID` page, select your application type. If you're not sure, choose `Web application`.-- Fill in your app name-- At the bottom, under `Authorised redirect URIs` click `Add URI`-- Enter your callback URI under `Authorised redirect URIs` at the bottom- - Your OAuth Redirect URI looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL- - Go to your [Supasebase Project Dashboard](https://supabase.io)- - Click on the `Settings` icon at the bottom of the left sidebar- - Click on `API` in the list- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`- - Enter this in the `Valid OAuth Redirect URIs` box- - Click `Save Changes` at the bottom right-- Click `Create`+- Fill in your app name.+- At the bottom, under `Authorised redirect URIs` click `Add URI`.+- Enter your callback URI under `Authorised redirect URIs` at the bottom.+- Enter your callback URI in the `Valid OAuth Redirect URIs` box.+- Click `Save Changes` at the bottom right.+- Click `Create`.Copy your new OAuth credentials-- A box will appear called `OAuth client created`-- Copy and save the values under `Your Client ID` and `Your Client Secret`+- A box will appear called `OAuth client created`.+- Copy and save the values under `Your Client ID` and `Your Client Secret`.### Enter your Google credentials into your Supabase Projectdiff --git a/web/docs/guides/auth/auth-twitter.mdx b/web/docs/guides/auth/auth-twitter.mdxindex 15980f369fc..d25805ceb4b 100644--- a/web/docs/guides/auth/auth-twitter.mdx+++ b/web/docs/guides/auth/auth-twitter.mdx@@ -7,6 +7,10 @@ description: Add Twitter OAuth to your Supabase projectimport Tabs from '@theme/Tabs';import TabItem from '@theme/TabItem';+To enable Twitter Auth for your project, you need to set up a Twitter OAuth application and add the application credentials to your Supabase Dashboard.++## Overview+Setting up Twitter logins for your application consists of 3 parts:* Create and configure a Twitter Project and App on the [Twitter Developer Dashboard](https://developer.twitter.com/en/portal/dashboard).@@ -15,6 +19,18 @@ Setting up Twitter logins for your application consists of 3 parts:## Steps+### Find your callback URL++In the next step you require a callback URL, which looks like this:++`https://<project-ref>.supabase.co/auth/v1/callback`++- Go to your [Supasebase Project Dashboard](https://supabase.io).+- Click on the `Settings` icon at the bottom of the left sidebar.+- Click on `API` in the list.+- Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.+- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.+### Create a Twitter OAuth app- Log into the *Twitter Developer Dashboard*.@@ -31,15 +47,6 @@ Setting up Twitter logins for your application consists of 3 parts:- Turn `Enable 3-legged OAuth` ON.- Turn `Request email address from users` ON.- Enter your `Callback URL`.- - Your `Callback URL` or `OAuth Redirect URI` looks like this:- - `https://<project-ref>.supabase.co/auth/v1/callback`.- - where `https://<project-ref>.supabase.co` is your Supabase Project API URL.- - Go to your [Supasebase Project Dashboard](https://supabase.io).- - Click on the `Settings` icon at the bottom of the left sidebar.- - Click on `API` in the list.- - Under Config / URL you'll find your API URL, you can click `Copy` to copy it to the clipboard.- - Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.- - Enter this in the `Callback URL` box.- Enter your `Website URL`.- Enter your `Terms of service URL`.- Enter your `Privacy policy URL`.