AdditionalUserInfo interface
Stay organized with collections
Save and categorize content based on your preferences.
A structure containing additional user information from a federated identity provider.
Signature:
export interface AdditionalUserInfo
Properties
Property |
Type |
Description |
isNewUser |
boolean |
Whether the user is new (created via sign-up) or existing (authenticated using sign-in). |
profile |
Record<string, unknown> | null |
Map containing IDP-specific user data. |
providerId |
string | null |
Identifier for the provider used to authenticate this user. |
username |
string | null |
The username if the provider is GitHub or Twitter. |
AdditionalUserInfo.isNewUser
Whether the user is new (created via sign-up) or existing (authenticated using sign-in).
Signature:
readonly isNewUser: boolean;
AdditionalUserInfo.profile
Map containing IDP-specific user data.
Signature:
readonly profile: Record<string, unknown> | null;
AdditionalUserInfo.providerId
Identifier for the provider used to authenticate this user.
Signature:
readonly providerId: string | null;
AdditionalUserInfo.username
The username if the provider is GitHub or Twitter.
Signature:
readonly username?: string | null;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-22 UTC.
[null,null,["Last updated 2022-07-22 UTC."],[],[],null,["# AdditionalUserInfo interface\n\nA structure containing additional user information from a federated identity provider.\n\n**Signature:** \n\n export interface AdditionalUserInfo \n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------------------|-----------------------------------|------------------------------------------------------------------------------------------|\n| [isNewUser](./auth.additionaluserinfo.md#additionaluserinfoisnewuser) | boolean | Whether the user is new (created via sign-up) or existing (authenticated using sign-in). |\n| [profile](./auth.additionaluserinfo.md#additionaluserinfoprofile) | Record\\\u003cstring, unknown\\\u003e \\| null | Map containing IDP-specific user data. |\n| [providerId](./auth.additionaluserinfo.md#additionaluserinfoproviderid) | string \\| null | Identifier for the provider used to authenticate this user. |\n| [username](./auth.additionaluserinfo.md#additionaluserinfousername) | string \\| null | The username if the provider is GitHub or Twitter. |\n\nAdditionalUserInfo.isNewUser\n----------------------------\n\nWhether the user is new (created via sign-up) or existing (authenticated using sign-in).\n\n**Signature:** \n\n readonly isNewUser: boolean;\n\nAdditionalUserInfo.profile\n--------------------------\n\nMap containing IDP-specific user data.\n\n**Signature:** \n\n readonly profile: Record\u003cstring, unknown\u003e | null;\n\nAdditionalUserInfo.providerId\n-----------------------------\n\nIdentifier for the provider used to authenticate this user.\n\n**Signature:** \n\n readonly providerId: string | null;\n\nAdditionalUserInfo.username\n---------------------------\n\nThe username if the provider is GitHub or Twitter.\n\n**Signature:** \n\n readonly username?: string | null;"]]