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:
Chris Chinchilla authored and GitHub committed 2026-03-10 17:06:22 +01:00
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
}