Skip to main content

googleGetSignInEmail

Type​

handler

Summary​

Get the email address of the authenticated user

Syntax​

googleGetSignInEmail()

Description​

Use the googleGetSignInEmail to obtain the email address of the authenticated user. If no user is authenticated then a 'Not authenticated' error is thrown.

note

In order to obtain an authenticated user's email address, "require-email" must have been present as a key of the options array passed to the googleSignIn handler. If it was not, then googleGetSignInEmail returns empty.

Examples​

put googleGetSignInEmail() into field "email"

Value​

NameTypeDescription

return

The googleGetSignInEmail handler returns the email address of the authenticated user.

handler: googleSignIn

Compatibility and Support​

OS

android