The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
remove redundant content on social-login
Jonathan Summers-Muird9478ae99729
diff --git a/apps/docs/pages/guides/auth/social-login.mdx b/apps/docs/pages/guides/auth/social-login.mdxindex 86c6fc69eb3..2d304d591b4 100644--- a/apps/docs/pages/guides/auth/social-login.mdx+++ b/apps/docs/pages/guides/auth/social-login.mdx@@ -53,145 +53,6 @@ If you've already set up your social provider you skip ahead and follow the impl</div>-## How to add Social 0Auth to your application--To use a social provider (e.g. Google, Facebook, Twitter) with Supabase in a JavaScript application, you can follow these steps:--Make sure the social provider is added and enabled in the Supabase dashboard, as described in the previous answer.--Install the Supabase client library in your JavaScript application by running the following command:--<Tabs- scrollable- size="large"- type="underlined"- defaultActiveId="js"->-<TabPanel id="js" label="JavaScript" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/javascript-icon.svg"/>}>--<div>--Pick the framework (if any) that you are using:--<Tabs- scrollable- size="small"- type="pills"- defaultActiveId="react"->--<TabPanel id="react" label="React" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/react-icon.svg"/>}>--<CH.Code>--```js src/Auth.js-import { useState } from 'react'-import { supabase } from './supabaseClient'--export default function Auth() {- const handleLogin = async (e) => {- e.preventDefault()- await supabase.auth.signInWithOAuth({- provider: 'google',- })- }-- return (- <form onSubmit={handleLogin}>- <button>Sign up with Google</button>- </form>- )-}-```-------```js src/supabaseClient.js-import { createClient } from '@supabase/supabase-js' const supabaseUrl = process.env.REACT_APP_SUPABASE_URL const supabaseAnonKey = process.env.REACT_APP_SUPABASE_ANON_KEY-export const supabase = createClient(supabaseUrl, supabaseAnonKey)-```--</CH.Code>--</TabPanel>--<TabPanel id="nextjs" label="NextJS" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/nextjs-icon.svg"/>}>--```bash-npx create-next-app@latest --ts --use-npm supabase-nextjs-cd supabase-nextjs-```--</TabPanel>--<TabPanel id="dart" label="Remix" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/remix-icon.svg"/>}>--```bash-npx create-next-app@latest --ts --use-npm supabase-nextjs-cd supabase-nextjs-```--</TabPanel>--<TabPanel id="js" label="Vanilla JS" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/javascript-icon.svg"/>}>--```bash-npm install @supabase/supabase-js-```--<CH.Code>--```js script.js-import { createClient } from '@supabase/supabase-js'--// Create a single supabase client for interacting with your database-const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')--async function handleSubmit(event) {- event.preventDefault()- const { data, error } = await supabase.auth.signInWithOAuth({- provider: 'google',- })-}-```-------```html index.html-<form onSubmit="handleSubmit()">- <button>Sign up with Google</button>-</form>-```--</CH.Code>--</TabPanel>--</Tabs>--</div>--</TabPanel>-<TabPanel id="ts" label="TypeScript" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/typescript-icon.svg"/>}>--```bash-npx create-next-app@latest --ts --use-npm supabase-nextjs-cd supabase-nextjs-```--</TabPanel>--<TabPanel id="dart" label="Flutter" icon={<img className="m-0 w-4 h-4" src="/docs/img/icons/flutter-icon.svg"/>}>--```bash-npx create-next-app@latest --ts --use-npm supabase-nextjs-cd supabase-nextjs-```--</TabPanel>--</Tabs>-export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Page