SignInResponse.linkIdp constructor

const SignInResponse.linkIdp({
  1. required String federatedId,
  2. required String providerId,
  3. required String localId,
  4. @Default(false) bool emailVerified,
  5. String? email,
  6. String? oauthIdToken,
  7. String? oauthAccessToken,
  8. String? oauthTokenSecret,
  9. String? rawUserInfo,
  10. String? firstName,
  11. String? lastName,
  12. String? fullName,
  13. String? displayName,
  14. Uri? photoUrl,
  15. required String idToken,
  16. required String refreshToken,
  17. 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;