SignInResponse.linkIdp constructor
const
SignInResponse.linkIdp({
- required String federatedId,
- required String providerId,
- required String localId,
- @Default(false) bool emailVerified,
- String? email,
- String? oauthIdToken,
- String? oauthAccessToken,
- String? oauthTokenSecret,
- String? rawUserInfo,
- String? firstName,
- String? lastName,
- String? fullName,
- String? displayName,
- Uri? photoUrl,
- required String idToken,
- required String refreshToken,
- required String expiresIn,
Implementation
const factory SignInResponse.linkIdp({
/// The unique ID identifies the IdP account.
required String federatedId,
/// The linked provider ID (e.g. "google.com" for the Google provider).
required String providerId,
/// The uid of the authenticated user.
required String localId,
/// Whether the signin email is verified.
@Default(false) bool emailVerified,
/// The email of the account.
String? email,
/// The OIDC id token if available.
String? oauthIdToken,
/// The OAuth access token if available.
String? oauthAccessToken,
/// The OAuth 1.0 token secret if available.
String? oauthTokenSecret,
/// The stringified JSON response containing all the IdP data corresponding
/// to the provided OAuth credential.
String? rawUserInfo,
/// The first name for the account.
String? firstName,
/// The last name for the account.
String? lastName,
/// The full name for the account.
String? fullName,
/// The display name for the account.
String? displayName,
/// The photo Url for the account.
Uri? photoUrl,
/// A Firebase Auth ID token for the authenticated user.
required String idToken,
/// A Firebase Auth refresh token for the authenticated user.
required String refreshToken,
/// The number of seconds in which the ID token expires.
required String expiresIn,
}) = LinkIdpResponse;