The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
rename twitch title
Inian427a14e838dd
diff --git a/web/docs/guides/auth/auth-twitch.mdx b/web/docs/guides/auth/auth-twitch.mdxindex b4783d00a4a..1b710ca8c6b 100644--- a/web/docs/guides/auth/auth-twitch.mdx+++ b/web/docs/guides/auth/auth-twitch.mdx@@ -1,12 +1,11 @@---id: auth-twitch-title: "Setting up Twitch Auth"+title: 'OAuth with Twitch'description: Add Twitch OAuth to your Supabase project----import Tabs from '@theme/Tabs';-import TabItem from '@theme/TabItem';-+import Tabs from '@theme/Tabs'+import TabItem from '@theme/TabItem'To enable Twitch Auth for your project, you need to set up a Twitch Application and add the Application OAuth credentials to your Supabase Dashboard.@@ -14,9 +13,9 @@ To enable Twitch Auth for your project, you need to set up a Twitch ApplicationSetting up Twitch logins for your application consists of 3 parts:-* Create and configure a Twitch Application [Twitch Developer Console](https://dev.twitch.tv/console)-* Add your Twitch OAuth Consumer keys to your [Supabase Project](https://supabase.io)-* Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)+- Create and configure a Twitch Application [Twitch Developer Console](https://dev.twitch.tv/console)+- Add your Twitch OAuth Consumer keys to your [Supabase Project](https://supabase.io)+- Add the login code to your [Supabase JS Client App](https://github.com/supabase/supabase-js)## Steps@@ -34,7 +33,7 @@ Setting up Twitch logins for your application consists of 3 parts:### Find your callback URL-In the next step you require a callback URL, which looks like this:+In the next step you require a callback URL, which looks like this:`https://<project-ref>.supabase.co/auth/v1/callback`@@ -45,10 +44,9 @@ In the next step you require a callback URL, which looks like this:- Now just add `/auth/v1/callback` to the end of that to get your full `OAuth Redirect URI`.<video width="99%" muted playsInline controls="true">-<source src="/videos/api/api-url-and-key.mp4" type="video/mp4" muted playsInline />+ <source src="/videos/api/api-url-and-key.mp4" type="video/mp4" muted playsInline /></video>-### Create a Twitch Application@@ -62,7 +60,6 @@ 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- Click `Manage` at the right of your application entry in the list.@@ -75,7 +72,6 @@ In the next step you require a callback URL, which looks like this:-### Add your Twitch credentials into your Supabase Project- Go to your [Supabase Project Dashboard](https://supabase.io)@@ -92,7 +88,7 @@ The JavaScript client code is documented here: [Supabase OAuth Client Code](http```jsconst { user, session, error } = await supabase.auth.signIn({- provider: 'twitch'+ provider: 'twitch',})```@@ -101,8 +97,8 @@ Add this function which you can call from a button, link, or UI element.```jsfunction signInWithTwitch() {const { user, session, error } = await supabase.auth.signIn({- provider: 'twitch'- });+ provider: 'twitch',+ })}```@@ -110,14 +106,13 @@ To log out:```jsfunction signout() {- const { error } = await supabase.auth.signOut();+ const { error } = await supabase.auth.signOut()}```## Resources-* [Supabase Account - Free Tier OK](https://supabase.io)-* [Supabase JS Client](https://github.com/supabase/supabase-js)-* [Twitch Account](https://twitch.tv)-* [Twitch Developer Console](https://dev.twitch.tv/console)-+- [Supabase Account - Free Tier OK](https://supabase.io)+- [Supabase JS Client](https://github.com/supabase/supabase-js)+- [Twitch Account](https://twitch.tv)+- [Twitch Developer Console](https://dev.twitch.tv/console)