The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: prettier
Greg Richardson50a75f5207bb
diff --git a/apps/docs/pages/guides/auth.mdx b/apps/docs/pages/guides/auth.mdxindex 8db373b3f88..3aca4c66333 100644--- a/apps/docs/pages/guides/auth.mdx+++ b/apps/docs/pages/guides/auth.mdx@@ -91,19 +91,19 @@ const getURL = () => {let url =process?.env?.NEXT_PUBLIC_SITE_URL ?? // Set this to your site URL in production env.process?.env?.NEXT_PUBLIC_VERCEL_URL ?? // Automatically set by Vercel.- 'http://localhost:3000/';+ 'http://localhost:3000/'// Make sure to include `https://` when not localhost.- url = url.includes('http') ? url : `https://${url}`;+ url = url.includes('http') ? url : `https://${url}`// Make sure to include a trailing `/`.- url = url.charAt(url.length - 1) === '/' ? url : `${url}/`;- return url;-};+ url = url.charAt(url.length - 1) === '/' ? url : `${url}/`+ return url+}const { data, error } = await supabase.auth.signInWithOAuth({provider: 'github',options: {- redirectTo: getURL()- }+ redirectTo: getURL(),+ },})```