mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
docs: SwitchGoogle social auth to getClaims (#43593)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES
This commit is contained in:
1 parent
df99db4715
commit
debecf3921
1 file changed
+3
-3
@@ -395,11 +395,11 @@ const OneTapComponent = () => {
|
||||
console.log('Nonce: ', nonce, hashedNonce)
|
||||
|
||||
// check if there's already an existing session before initializing the one-tap UI
|
||||
const { data, error } = await supabase.auth.getSession()
|
||||
const { data: { claims }, error } = await supabase.auth.getClaims()
|
||||
if (error) {
|
||||
console.error('Error getting session', error)
|
||||
console.error('Error getting claims', error)
|
||||
}
|
||||
if (data.session) {
|
||||
if (claims) {
|
||||
router.push('/')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user