SignInRequest.idp constructor

const SignInRequest.idp({
  1. required Uri requestUri,
  2. required String postBody,
  3. @Default.new(true) bool returnSecureToken,
  4. @Default.new(false) bool returnIdpCredential,
})

Implementation

const factory SignInRequest.idp({
  /// The URI to which the IDP redirects the user back.
  required Uri requestUri,

  /// Contains the OAuth credential (an ID token or access token) and provider
  /// ID which issues the credential.
  required String postBody,

  /// Whether or not to return an ID and refresh token. Should always be true.
  @Default(true) bool returnSecureToken,

  /// Whether to force the return of the OAuth credential on the following
  /// errors: FEDERATED_USER_ID_ALREADY_LINKED and EMAIL_EXISTS.
  @Default(false) bool returnIdpCredential,
}) = IdpSignInRequest;