The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: update auth deep dive
Kang Ming8608f2bb4e9b
diff --git a/apps/docs/pages/learn/auth-deep-dive/auth-google-oauth.mdx b/apps/docs/pages/learn/auth-deep-dive/auth-google-oauth.mdxindex d10f98e5d73..b9f7f2836f9 100644--- a/apps/docs/pages/learn/auth-deep-dive/auth-google-oauth.mdx+++ b/apps/docs/pages/learn/auth-deep-dive/auth-google-oauth.mdx@@ -80,6 +80,12 @@ You also have the option of requesting additional scopes from the oauth providerhttps://<your-ref>.supabase.co/auth/v1/authorize?provider=google&https://www.googleapis.com/auth/gmail.send```+Alternatively, if you're using the `supabase-js` client library, you can call the [`signInWithOAuth()` method](/docs/reference/javascript/auth-signinwithoauth):++```js+const { data, error } = await supabase.auth.signInWithOAuth({ provider: 'google' })+```+Note however that your app will usually have to be verified by Google before you can request advanced scopes such as this.The only thing left to implement is the UI, but if you prefer to use something pre-built, we have a handy [Auth Widget](https://github.com/supabase/ui/#using-supabase-ui-auth), where you can enable/disable whichever auth providers you want to support.@@ -89,6 +95,7 @@ For any support please get in touch at beta at [supabase.com](https://supabase.c### Resources- [JWT debugger](https://jwt.io)+- [Supabase Auth API Reference](/docs/reference/javascript/auth-api)### Next steps