Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update auth-google.mdx: update the userInfo object (#29705)

Axole Maranjana5becfc1b4c0b
diff --git a/apps/docs/content/guides/auth/social-login/auth-google.mdx b/apps/docs/content/guides/auth/social-login/auth-google.mdx
index e747e597111..8ebb31ea2c3 100644
--- a/apps/docs/content/guides/auth/social-login/auth-google.mdx
+++ b/apps/docs/content/guides/auth/social-login/auth-google.mdx
@@ -465,10 +465,10 @@ export default function () {
try {
await GoogleSignin.hasPlayServices()
const userInfo = await GoogleSignin.signIn()
- if (userInfo.idToken) {
+ if (userInfo.data.idToken) {
const { data, error } = await supabase.auth.signInWithIdToken({
provider: 'google',
- token: userInfo.idToken,
+ token: userInfo.data.idToken,
})
console.log(error, data)
} else {