signInOAuth()
Description
Sign in with a selected OAUTH provider
Request
Parameters
Field | Required | Data Type | Description |
---|---|---|---|
providerId | string |
| |
sessionId | string | The ID of the OAUTH session returned from createUrlForOAuthSignIn() | |
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, The parameter will be returned in the | |
code | string | The parameter will be returned in the |
Example
Response
Parameters
Field | Data Type | Description |
---|---|---|
providerId | string |
|
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 | Token that can be used to refresh idToken via refreshToken() method |
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