signInOAuth()
Description
Sign in with a selected OAUTH provider
Request
Parameters
providerId
string
google.com
, facebook.com
, or github.com
sessionId
string
callBackUri
string
URL to redirect users after a successful OAUTH sign-in.
token
string
Used only for Google and Facebook sign-in.
If the token is provided, code
parameter is ignored.
code
string
Example
Response
Parameters
providerId
string
google.com
, facebook.com
, or github.com
localId
string
User email
string
User password
emailVerified
boolean
Whether the user has verified their email by following the link sent to their email.
rawUserInfo
string
The stringified JSON response containing all the IdP data corresponding to the provided OAuth credential.
idToken
string
firstName
string
User first name if present in OAUTH provider
lastName
string
User last name if present in OAUTH provider
fullName
string
User full name if present in OAUTH provider
displayName
string
User display name if present in OAUTH provider
photoUrl
string
User photo if present in OAUTH provider
refreshToken
string
expiresIn
string
How long the token is valid for (in seconds).
needConfirmation
boolean
Whether another account with the same credential already exists. The user will need to sign in to the original account and then link the current credential to it.
Example
Last updated