The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update social login guides
dannykngee8f6d17378a
diff --git a/apps/reference/docs/guides/auth/auth-apple.mdx b/apps/reference/docs/guides/auth/auth-apple.mdxindex 653ebcd527b..524212403b3 100644--- a/apps/reference/docs/guides/auth/auth-apple.mdx+++ b/apps/reference/docs/guides/auth/auth-apple.mdx@@ -20,16 +20,14 @@ Apple OAuth consists of six broad steps:- Add your `client id` and `client secret` keys to your [Supabase Project](https://app.supabase.com).- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).-## Steps--### Access 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+## Obtain an App ID- Go to `Certificates, Identifiers & Profiles`.- Click on `Identifiers` at the left.@@ -43,7 +41,7 @@ Apple OAuth consists of six broad steps:- Click `Continue` at the top right.- Click `Register` at the top right.-### Obtain a Services ID+## Obtain a Services IDThis will serve as the `client_id` when you make API calls to authenticate the user.@@ -58,7 +56,7 @@ This will serve as the `client_id` when you make API calls to authenticate the u- Click `Continue` at the top right.- Click `Register` at the top right.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -79,7 +77,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Configure your Services ID+## 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.@@ -91,7 +89,7 @@ The next step requires a callback URL, which looks like this:- Click `Continue` at the top right.- Click `Save` at the top right.-### Download your secret key+## Download your secret keyNow you'll need to download a `secret key` file from Apple that will be used to generate your `client_secret`.@@ -109,7 +107,7 @@ Now you'll need to download a `secret key` file from Apple that will be used to- Save the downloaded file -- this contains your "secret key" that will be used to generate your `client_secret`.- Click `Done` at the top right.-### Generate a `client_secret`+## Generate a `client_secret`The `secret key` you downloaded is used to create the `client_secret` string you'll need to authenticate your users.@@ -173,7 +171,7 @@ puts token2. 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.-### Add your OAuth credentials to Supabase+## Add your OAuth credentials to Supabase- Go to your [Supabase Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -183,27 +181,19 @@ puts token- Enter your `client_id` and `client_secret` saved in the previous steps.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented in the [Supabase OAuth Reference](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'apple',-})-```+## Add login code to your client app-Add a function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `apple` as the `provider`:```jsasync function signInWithApple() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'apple',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-azure.mdx b/apps/reference/docs/guides/auth/auth-azure.mdxindex 0f7984fdaa5..93d1a6c11c6 100644--- a/apps/reference/docs/guides/auth/auth-azure.mdx+++ b/apps/reference/docs/guides/auth/auth-azure.mdx@@ -18,14 +18,12 @@ Azure OAuth consists of four broad steps:- Create a `Secret ID` with “Sign In with Azure” capabilities. The value of the secret will be used as the `client secret`.- Add the callback url of your application to the allowlist.-## Steps--### Access your Azure Developer account+## Access your Azure Developer account- Go to [portal.azure.com](https://portal.azure.com/#home).- Login and select "Azure Active Directory" under the list of Azure Services.-### Register an application+## Register an application- Under Azure Active Directory, select "App registrations" in the side panel.- Select "New registration".@@ -36,7 +34,7 @@ Azure OAuth consists of four broad steps:-### Obtain a Client ID+## Obtain a Client IDThis will serve as the `client_id` when you make API calls to authenticate the user.@@ -44,7 +42,7 @@ This will serve as the `client_id` when you make API calls to authenticate the u-### Obtain a Secret ID+## Obtain a Secret IDThis will serve as the `client_secret` when you make API calls to authenticate the user.@@ -65,21 +63,13 @@ This will allow your users to use your custom Azure login page when logging in.-### Add login code to your client app--The JavaScript client code is documented in the [Supabase OAuth Reference](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'azure',-})-```+## Add login code to your client app-Add a function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `azure` as the `provider`:```jsasync function signInWithAzure() {- const { user, session, error } = await supabase.auth.signIn(+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'azure',},@@ -90,7 +80,7 @@ async function signInWithAzure() {}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {@@ -100,5 +90,5 @@ async function signout() {## Resources-- [Azure Developer Account](https://portal.azure.com).-- [GitHub Discussion](https://github.com/supabase/gotrue/pull/54#issuecomment-757043573).+- [Azure Developer Account](https://portal.azure.com)+- [GitHub Discussion](https://github.com/supabase/gotrue/pull/54#issuecomment-757043573)diff --git a/apps/reference/docs/guides/auth/auth-bitbucket.mdx b/apps/reference/docs/guides/auth/auth-bitbucket.mdxindex 6b1f4e96a9a..d7e279cd3c3 100644--- a/apps/reference/docs/guides/auth/auth-bitbucket.mdx+++ b/apps/reference/docs/guides/auth/auth-bitbucket.mdx@@ -17,16 +17,14 @@ Setting up Bitbucket logins for your application consists of 3 parts:- Add your Bitbucket OAuth Consumer keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Bitbucket account+## Access your Bitbucket account- Go to [bitbucket.org](https://bitbucket.org/).- Click on `Login` at the top right to log in.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a Bitbucket OAuth app+## Create a Bitbucket OAuth app- Click on your profile icon at the bottom left- Click on `All Workspaces`@@ -62,7 +60,7 @@ The next step requires a callback URL, which looks like this:- Click on your app name (the name of your new OAuth Consumer)- Copy your `Key` (`client_key`) and `Secret` (`client_secret`) codes-### Add your Bitbucket credentials into your Supabase Project+## Add your Bitbucket credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -72,27 +70,19 @@ The next step requires a callback URL, which looks like this:- Enter your `client_id` and `client_secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'bitbucket',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `bitbucket` as the `provider`:```jsasync function signInWithBitbucket() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'bitbucket',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-discord.mdx b/apps/reference/docs/guides/auth/auth-discord.mdxindex 8591a232d16..11193ec9c8a 100644--- a/apps/reference/docs/guides/auth/auth-discord.mdx+++ b/apps/reference/docs/guides/auth/auth-discord.mdx@@ -17,9 +17,7 @@ Setting up Discord logins for your application consists of 3 parts:- Add your Discord OAuth Consumer keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Discord account+## Access your Discord account- Go to [discord.com](https://discord.com/).- Click on `Login` at the top right to log in.@@ -30,7 +28,7 @@ Setting up Discord logins for your application consists of 3 parts:-### Find your callback URL+## Find your callback URLIn the next step you require a callback URL, which looks like this:@@ -51,7 +49,7 @@ In the next step you require a callback URL, which looks like this:/></video>-### Create a Discord Application+## Create a Discord Application- Click on `New Application` at the top right.- Enter the name of your application and click `Create`.@@ -61,7 +59,7 @@ In the next step you require a callback URL, which looks like this:- Click `Save Changes` at the bottom.- Copy your `Client ID` and `Client Secret` under `Client information`.-### Add your Discord credentials into your Supabase Project+## Add your Discord credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -71,33 +69,21 @@ In the next step you require a callback URL, which looks like this:- Enter your `client_id` and `client_secret` saved in the previous step- Click `Save`-### Add login code to your client app+## Add login code to your client app-The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'discord',-})-```--:::note--If you call `signIn()` when already logged in, Discord will prompt the user again for authorization.--:::--Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `discord` as the `provider`:```jsasync function signInWithDiscord() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'discord',})}```-To log out:+If your user is already signed in, Discord prompts the user again for authorization.++When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-facebook.mdx b/apps/reference/docs/guides/auth/auth-facebook.mdxindex c7a76ef1902..3cb6ac68947 100644--- a/apps/reference/docs/guides/auth/auth-facebook.mdx+++ b/apps/reference/docs/guides/auth/auth-facebook.mdx@@ -17,16 +17,14 @@ Setting up Facebook logins for your application consists of 3 parts:- Add your Facebook keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Facebook Developer account+## Access your Facebook Developer account- Go to [developers.facebook.com](https://developers.facebook.com).- Click on `Log In` at the top right to log in.-### Create a Facebook App+## Create a Facebook App- Click on `My Apps` at the top right.- Click `Create App` near the top right.@@ -34,7 +32,7 @@ Setting up Facebook logins for your application consists of 3 parts:- 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+## Find your callback URIThe next step requires a callback URI, which looks like this:@@ -55,7 +53,7 @@ The next step requires a callback URI, which looks like this:/></video>-### Set up FaceBook Login for your Facebook App+## Set up FaceBook Login for your Facebook AppFrom the `Add Products to your App` screen:@@ -72,14 +70,14 @@ From the `App Review -> Permissions and Features` screen:You can read more about access levels [here](https://developers.facebook.com/docs/graph-api/overview/access-levels/)-### Copy your Facebook App ID and Secret+## Copy your Facebook App ID and Secret- Click `Settings / Basic` in the left sidebar- Copy your App ID from the top of the `Basic Settings` page- Under `App Secret` click `Show` then copy your secret- Make sure all required fields are completed on this screen.-### Enter your Facebook App ID and Secret into your Supabase Project+## Enter your Facebook App ID and Secret into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -89,27 +87,19 @@ You can read more about access levels [here](https://developers.facebook.com/doc- Enter your `Facebook client ID` and `Facebook secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'facebook',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `facebook` as the `provider`:```jsasync function signInWithFacebook() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'facebook',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-github.mdx b/apps/reference/docs/guides/auth/auth-github.mdxindex d171495bafb..471d37935b1 100644--- a/apps/reference/docs/guides/auth/auth-github.mdx+++ b/apps/reference/docs/guides/auth/auth-github.mdx@@ -17,16 +17,14 @@ Setting up GitHub logins for your application consists of 3 parts:- Add your GitHub OAuth keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your GitHub account+## Access your GitHub account- Go to [github.com](https://github.com).- Click on `Sign In` at the top right to log in.-### Create a GitHub Oauth App+## Create a GitHub Oauth AppGo to the [GitHub Developer Settings](https://github.com/settings/developers) page:@@ -35,7 +33,7 @@ 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`-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -56,7 +54,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Register a new OAuth application+## Register a new OAuth application- 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.@@ -72,7 +70,7 @@ Copy your new OAuth credentials- Click `Generate a new client secret`.- Copy and save your `Client secret`.-### Enter your GitHub credentials into your Supabase Project+## Enter your GitHub credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -82,27 +80,19 @@ Copy your new OAuth credentials- Enter your `GitHub Client ID` and `GitHub Client Secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'github',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `github` as the `provider`:```js-async function signInWithGithub() {- const { user, session, error } = await supabase.auth.signIn({+async function signInWithGitHub() {+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'github',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-gitlab.mdx b/apps/reference/docs/guides/auth/auth-gitlab.mdxindex adf4287ff03..9f5bfd29360 100644--- a/apps/reference/docs/guides/auth/auth-gitlab.mdx+++ b/apps/reference/docs/guides/auth/auth-gitlab.mdx@@ -17,16 +17,14 @@ Setting up GitLab logins for your application consists of 3 parts:- Add your GitLab Application keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your GitLab account+## Access your GitLab account- Go to [gitlab.com](https://gitlab.com).- Click on `Login` at the top right to log in.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create your GitLab Application+## Create your GitLab Application- Click on your `profile logo` (avatar) in the top-right corner.- Select `Edit profile`.@@ -59,7 +57,7 @@ The next step requires a callback URL, which looks like this:- 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 Project+## Add your GitLab credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -69,27 +67,19 @@ The next step requires a callback URL, which looks like this:- Enter your `client_id` and `client_secret` saved in the previous step.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'gitlab',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `gitlab` as the `provider`:```jsasync function signInWithGitLab() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'gitlab',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-google.mdx b/apps/reference/docs/guides/auth/auth-google.mdxindex e3788c3f3aa..051ce6cab03 100644--- a/apps/reference/docs/guides/auth/auth-google.mdx+++ b/apps/reference/docs/guides/auth/auth-google.mdx@@ -17,16 +17,14 @@ Setting up Google logins for your application consists of 3 parts:- Add your Google OAuth keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Google Cloud Platform account+## Access your Google Cloud Platform account- Go to [cloud.google.com](https://cloud.google.com).- Click on `Sign in` at the top right to log in.-### Create a Google Cloud Platform Project+## Create a Google Cloud Platform Project- Click on `Select a Project` at the top left.- (Or, if a project is currently selected, click on the current project name at the top left.)@@ -35,7 +33,7 @@ Setting up Google logins for your application consists of 3 parts:- (This can take a few minutes.)- This should bring you to the dashboard for your new project.-### Create the OAuth Keys for your project+## Create the OAuth Keys for your projectFrom your project's dashboard screen:@@ -44,12 +42,12 @@ From your project's dashboard screen:- On the `OAuth consent screen` page select `External`.- Click `Create`.-### Edit your app information+## 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+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -70,7 +68,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create your Google credentials+## Create your Google credentials- Click `Credentials` at the left to go to the `Credentials` page on the Google Cloud Platform console.- Click `Create Credentials` near the top then select `OAuth client ID`@@ -87,7 +85,7 @@ 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`.-### Enter your Google credentials into your Supabase Project+## Enter your Google credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -97,27 +95,19 @@ Copy your new OAuth credentials- Enter your `Google Client ID` and `Google Client Secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'google',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `google` as the `provider`:```jsasync function signInWithGoogle() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'google',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-keycloak.mdx b/apps/reference/docs/guides/auth/auth-keycloak.mdxindex 0282eb6cb75..76e536063c3 100644--- a/apps/reference/docs/guides/auth/auth-keycloak.mdx+++ b/apps/reference/docs/guides/auth/auth-keycloak.mdx@@ -24,13 +24,11 @@ Keycloak OAuth consists of five broad steps:- Obtain the `Secret` from the credentials tab which will be used as the `client secret`.- Add the callback url of your application to your allowlist.-## Steps--### Access your Keycloak Admin console+## Access your Keycloak Admin console- Login by visiting [`http://localhost:8080`](http://localhost:8080) and clicking on "Administration Console".-### Create a Keycloak Realm+## Create a Keycloak Realm- Once you've logged in to the Keycloak console, you can add a realm from the side panel. The default realm should be named "Master".- After you've added a new realm, you can retrieve the `issuer` from the "OpenID Endpoint Configuration" endpoint. The `issuer` will be used as the `Keycloak URL`.@@ -38,13 +36,13 @@ Keycloak OAuth consists of five broad steps:-### Create a Keycloak Client+## Create a Keycloak ClientThe "Client ID" of the created client will serve as the `client_id` when you make API calls to authenticate the user.-### Client Settings+## Client SettingsAfter you've created the client successfully, ensure that you set the following settings:@@ -55,34 +53,26 @@ After you've created the client successfully, ensure that you set the following-### Obtain the Client Secret+## Obtain the Client SecretThis will serve as the `client_secret` when you make API calls to authenticate the user.Under the "Credentials" tab, the `Secret` value will be used as the `client secret`.-### Add login code to your client app--The JavaScript client code is documented in the [Supabase OAuth Reference](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'keycloak',-})-```+## Add login code to your client app-Add a function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `keycloak` as the `provider`:```jsasync function signInWithKeycloak() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'keycloak',- }+ })}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-linkedin.mdx b/apps/reference/docs/guides/auth/auth-linkedin.mdxindex db857f6fed4..207d19c0439 100644--- a/apps/reference/docs/guides/auth/auth-linkedin.mdx+++ b/apps/reference/docs/guides/auth/auth-linkedin.mdx@@ -17,16 +17,14 @@ Setting up LinkedIn logins for your application consists of 3 parts:- Add your LinkedIn `client_id` and `client_secret` to your [Supabase Project](https://app.supabase.com).- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).-## Steps--### Access your LinkedIn Developer account+## Access your LinkedIn Developer account- Go to [LinkedIn Developer Dashboard](https://www.linkedin.com/developers/apps).- Log in (if necessary.)-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a LinkedIn OAuth app+## Create a LinkedIn OAuth app- Go to [LinkedIn Developer Dashboard](https://www.linkedin.com/developers/apps).- Click on `Create App` at the top right@@ -58,7 +56,7 @@ The next step requires a callback URL, which looks like this:- Copy and save your newly-generated `Client ID`- Copy and save your newly-generated `Client Secret`-### Enter your LinkedIn credentials into your Supabase Project+## Enter your LinkedIn credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -68,27 +66,19 @@ The next step requires a callback URL, which looks like this:- Enter your `client_id` and `client_secret` saved in the previous step.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'LinkedIn',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `linkedin` as the `provider`:```jsasync function signInWithLinkedIn() {- const { user, session, error } = await supabase.auth.signIn({- provider: 'LinkedIn',+ const { data, error } = await supabase.auth.signInWithOAuth({+ provider: 'linkedin',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-notion.mdx b/apps/reference/docs/guides/auth/auth-notion.mdxindex 1f615f76bbd..31b5d76e778 100644--- a/apps/reference/docs/guides/auth/auth-notion.mdx+++ b/apps/reference/docs/guides/auth/auth-notion.mdx@@ -17,9 +17,7 @@ Setting up Notion logins for your application consists of 3 parts:- Retrieve your OAuth client ID and OAuth client secret and add them to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Create your notion integration+## Create your notion integration- Go to [developers.notion.com](https://developers.notion.com/).- Click "View my integrations" and login.@@ -33,7 +31,7 @@ Setting up Notion logins for your application consists of 3 parts:-### Add the redirect uri+## Add the redirect URI- After selecting "Public integration", you should see an option to add "Redirect URIs".@@ -58,7 +56,7 @@ Your redirect uri should look like the following: `https://<project-ref>.supabas/></video>-### Add your Notion credentials into your Supabase Project+## Add your Notion credentials into your Supabase Project- Once you've created your notion integration, you should be able to retrieve the "OAuth client ID" and "OAuth client secret" from the "OAuth Domain and URIs" tab.@@ -71,27 +69,19 @@ Your redirect uri should look like the following: `https://<project-ref>.supabas- Enter the "OAuth client ID" and "OAuth client secret" obtained in the `client id` and `client secret` fields.- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'notion',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `notion` as the `provider`:```jsasync function signInWithNotion() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'notion',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-slack.mdx b/apps/reference/docs/guides/auth/auth-slack.mdxindex c9568eaa593..c00e377747b 100644--- a/apps/reference/docs/guides/auth/auth-slack.mdx+++ b/apps/reference/docs/guides/auth/auth-slack.mdx@@ -17,16 +17,14 @@ Setting up Slack logins for your application consists of 3 parts:- Add your Slack `API Key` and `API Secret Key` to your [Supabase Project](https://app.supabase.com).- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).-## Steps--### Access your Slack Developer account+## Access your Slack Developer account- Go to [api.slack.com](https://api.slack.com/apps).- Click on `Your Apps` at the top right to log in.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a Slack OAuth app+## Create a Slack OAuth app- Go to [api.slack.com](https://api.slack.com/apps).- Click on `Create an App`@@ -71,7 +69,7 @@ Under `Redirect URLs`:- Paste your `Callback URL` then click `Add`- Click `Save URLs`-### Enter your Slack credentials into your Supabase Project+## Enter your Slack credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -81,27 +79,19 @@ Under `Redirect URLs`:- Enter your `Client ID` (`client_id`) and `Client Secret` (`client_secret`) saved in the previous step.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'slack',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `slack` as the `provider`:```jsasync function signInWithSlack() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'slack',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-spotify.mdx b/apps/reference/docs/guides/auth/auth-spotify.mdxindex c617021e79b..cf282bea973 100644--- a/apps/reference/docs/guides/auth/auth-spotify.mdx+++ b/apps/reference/docs/guides/auth/auth-spotify.mdx@@ -17,16 +17,14 @@ Setting up Spotify logins for your application consists of 3 parts:- Add your Spotify `API Key` and `API Secret Key` to your [Supabase Project](https://app.supabase.com).- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).-## Steps--### Access your Spotify Developer account+## Access your Spotify Developer account- Log into [Spotify](https://spotify.com)- Access the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard)-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a Spotify OAuth app+## Create a Spotify OAuth app- Log into [Spotify](https://spotify.com).- Go to the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard)@@ -66,7 +64,7 @@ Under `Redirect URIs`:- Click `Add`- Click `Save` at the bottom-### Enter your Spotify credentials into your Supabase Project+## Enter your Spotify credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -76,27 +74,19 @@ Under `Redirect URIs`:- Enter your `Client ID` (`client_id`) and `Client Secret` (`client_secret`) saved in the previous step.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'spotify',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `spotify` as the `provider`:```jsasync function signInWithSpotify() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'spotify',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-twitch.mdx b/apps/reference/docs/guides/auth/auth-twitch.mdxindex ef76d915913..56a67e6c82c 100644--- a/apps/reference/docs/guides/auth/auth-twitch.mdx+++ b/apps/reference/docs/guides/auth/auth-twitch.mdx@@ -17,9 +17,7 @@ Setting up Twitch logins for your application consists of 3 parts:- Add your Twitch OAuth Consumer keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Twitch Developer account+## Access your Twitch Developer account- Go to [dev.twitch.tv](https://dev.twitch.tv).- Click on `Log in with Twitch` at the top right to log in.@@ -31,7 +29,7 @@ Setting up Twitch logins for your application consists of 3 parts:-### Find your callback URL+## Find your callback URLIn the next step you require a callback URL, which looks like this:@@ -52,7 +50,7 @@ In the next step you require a callback URL, which looks like this:/></video>-### Create a Twitch Application+## Create a Twitch Application@@ -65,7 +63,7 @@ In the next step you require a callback URL, which looks like this:- Select a category for your app.- Check the Captcha box and click `Create`.-### Retrieve your Twitch OAuth Client ID and Client Secret+## Retrieve your Twitch OAuth Client ID and Client Secret- Click `Manage` at the right of your application entry in the list.@@ -77,7 +75,7 @@ In the next step you require a callback URL, which looks like this:-### Add your Twitch credentials into your Supabase Project+## Add your Twitch credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -87,27 +85,19 @@ In the next step you require a callback URL, which looks like this:- Enter your `client_id` and `client_secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'twitch',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `twitch` as the `provider`:```jsasync function signInWithTwitch() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'twitch',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-twitter.mdx b/apps/reference/docs/guides/auth/auth-twitter.mdxindex d5f5726d756..88448a12eeb 100644--- a/apps/reference/docs/guides/auth/auth-twitter.mdx+++ b/apps/reference/docs/guides/auth/auth-twitter.mdx@@ -17,16 +17,14 @@ Setting up Twitter logins for your application consists of 3 parts:- Add your Twitter `API Key` and `API Secret Key` to your [Supabase Project](https://app.supabase.com).- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js).-## Steps--### Access your Twitter Developer account+## Access your Twitter Developer account- Go to [developer.twitter.com](https://developer.twitter.com).- Click on `Sign in` at the top right to log in.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a Twitter OAuth app+## Create a Twitter OAuth app- Click `+ Create Project`.- Enter your project name, click `Next`.@@ -67,7 +65,7 @@ The next step requires a callback URL, which looks like this:- Enter your `Privacy policy URL`.- Click `Save`.-### Enter your Twitter credentials into your Supabase Project+## Enter your Twitter credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com).- In the left sidebar, click the `Authentication` icon (near the top).@@ -77,27 +75,19 @@ The next step requires a callback URL, which looks like this:- Enter your `API Key` (`client_id`) and `API Secret Key` (`client_secret`) saved in the previous step.- Click `Save`.-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers).--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'twitter',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `twitter` as the `provider`:```jsasync function signInWithTwitter() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'twitter',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-workos.mdx b/apps/reference/docs/guides/auth/auth-workos.mdxindex 9e2ef7c79e7..e7e9c932b8d 100644--- a/apps/reference/docs/guides/auth/auth-workos.mdx+++ b/apps/reference/docs/guides/auth/auth-workos.mdx@@ -21,27 +21,25 @@ The procedure consists of five broad steps:- Connect a WorkOS Supported Identity Provider- Add your WorkOS credentials into your Supabase project-## Steps--### Create a WorkOS Organization+## Create a WorkOS OrganizationLog in to the dashboard and hop over to the Organizations tab to create and organization-### Obtain the Client ID and configure Redirect URI+## Obtain the Client ID and configure Redirect URIHead over to the Configuration tab and configure the redirect URI.The redirect URI should look like `https://<project-ref>.supabase.co/auth/v1/callback`Note that this is distinct from the redirect URI referred to in the Supabase dashboard-### Obtain the WorkOS Secret+## Obtain the WorkOS SecretHead over to the API Keys page and obtain the secret key.-### Connect a WorkOS Supported Identity Provider+## Connect a WorkOS Supported Identity ProviderSet up the identity provider by visiting the setup link.@@ -49,7 +47,7 @@ Set up the identity provider by visiting the setup link.You can pick between any one of the many identity providers that WorkOS supports.-### Add your WorkOS credentials into your Supabase Project+## Add your WorkOS credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -58,29 +56,13 @@ You can pick between any one of the many identity providers that WorkOS supports- Enter the `Client ID`, `Secret`, and `WorkOS URL` saved in the previous steps. The ``WorkOS URL` setting should be set to https://api.workos.com/- Click `Save`-### Add login code to your client app--The JavaScript client code is documented in the [Supabase OAuth Reference](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers). Note that you only need to include one of the three parameters: `connection`, `organization`, and `provider`.-You can refer to the [WorkOS Documentation](https://workos.com/docs/reference/sso/authorize/) to learn more about the different methods.--```js-const { user, session, error } = await supabase.auth.signIn(- {- provider: 'workos',- },- {- connection: '<your_connection>',- organization: '<your_organization',- provider: '<your_provider>',- }-)-```+## Add login code to your client app-Add a function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `workos` as the `provider`:```jsasync function signInWithWorkOS() {- const { user, session, error } = await supabase.auth.signIn(+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'workos',},@@ -93,7 +75,9 @@ async function signInWithWorkOS() {}```-To log out:+Refer to the [WorkOS Documentation](https://workos.com/docs/reference/sso/authorize/) to learn more about the different methods.++When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {diff --git a/apps/reference/docs/guides/auth/auth-zoom.mdx b/apps/reference/docs/guides/auth/auth-zoom.mdxindex cab2ad3e6f5..98763329bc8 100644--- a/apps/reference/docs/guides/auth/auth-zoom.mdx+++ b/apps/reference/docs/guides/auth/auth-zoom.mdx@@ -17,16 +17,14 @@ Setting up Zoom logins for your application consists of 3 parts:- Add your Zoom OAuth keys to your [Supabase Project](https://app.supabase.com)- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)-## Steps--### Access your Zoom Developer account+## Access your Zoom Developer account- Go to [marketplace.zoom.us](https://marketplace.zoom.us/).- Click on `Sign In` at the top right to log in.-### Find your callback URL+## Find your callback URLThe next step requires a callback URL, which looks like this:@@ -47,7 +45,7 @@ The next step requires a callback URL, which looks like this:/></video>-### Create a Zoom Oauth App+## Create a Zoom Oauth App- Go to [marketplace.zoom.us](https://marketplace.zoom.us/).- Click on `Sign In` at the top right to log in.@@ -67,7 +65,7 @@ Under `Redirect URL for OAuth`- Paste your `Callback URL`- Click `Continue`-### Enter your Zoom credentials into your Supabase Project+## Enter your Zoom credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://app.supabase.com)- In the left sidebar, click the `Authentication` icon (near the top)@@ -77,27 +75,19 @@ Under `Redirect URL for OAuth`- Enter your `Zoom Client ID` and `Zoom Client Secret` saved in the previous step- Click `Save`-### Add login code to your client app--The JavaScript client code is documented here: [Supabase OAuth Client Code](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers)--```js-const { user, session, error } = await supabase.auth.signIn({- provider: 'zoom',-})-```+## Add login code to your client app-Add this function which you can call from a button, link, or UI element.+When your user signs in, call [signInWithOAuth()](/docs/reference/javascript/auth-signinwithoauth) with `zoom` as the `provider`:```jsasync function signInWithZoom() {- const { user, session, error } = await supabase.auth.signIn({+ const { data, error } = await supabase.auth.signInWithOAuth({provider: 'zoom',})}```-To log out:+When your user signs out, call [signOut()](/docs/reference/javascript/auth-signout) to remove them from the browser session and any objects from localStorage:```jsasync function signout() {