Get Email From Google Auth In Authentication Trigger When Open ID Connect Is Enabled

Hey, I want to get user email in my authentication trigger using google authentication provider and I have enabled Open ID Connect in auth provider setting so I can’t use custom data but I want to get access to user email to validate existing users.

import { useGoogleOneTapLogin} from '@react-oauth/google'
     useGoogleOneTapLogin({
        onSuccess: async (credentialResponse) => {
            const credentials = Credentials.google({
                idToken: credentialResponse.credential,
            })
            const user = await app.logIn(credentials)
      
        },
        onError: () => {
            console.log('Login Failed')
        },
    })

This topic was automatically closed after 180 days. New replies are no longer allowed.