docs: update auth deep dive

This commit is contained in:
Kang Ming committed 2023-08-16 10:21:32 +08:00
1 parent 56b3a6e125
commit 8608f2bb4e
1 file changed
+7
@@ -80,6 +80,12 @@ You also have the option of requesting additional scopes from the oauth provider
https://<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