Skip to content

feat(auth): add reauthenticateWithProvider #9570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 22, 2022
Merged

Conversation

Lyokone
Copy link
Contributor

@Lyokone Lyokone commented Sep 19, 2022

Description

Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.

Related Issues

Closes #9566

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
Lyokone Guillaume Bernos
@Lyokone Lyokone changed the title fix(auth): add fix(auth): add reauthenticateWithProvider Sep 20, 2022
@Lyokone Lyokone changed the title fix(auth): add reauthenticateWithProvider feat(auth): add reauthenticateWithProvider Sep 20, 2022

Verified

This commit was signed with the committer’s verified signature.
Lyokone Guillaume Bernos

Verified

This commit was signed with the committer’s verified signature.
Lyokone Guillaume Bernos
Copy link
Member

@russellwheatley russellwheatley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be documentation with this? 🤔

Verified

This commit was signed with the committer’s verified signature.
Lyokone Guillaume Bernos
@Lyokone
Copy link
Contributor Author

Lyokone commented Sep 22, 2022

@russellwheatley I've added documentation (same as in the Android documentation part 6 which is really sparse)

/// On Web you should use [linkWithPopup] instead.
///
/// A [FirebaseAuthException] maybe thrown with the following error code:
/// - **provider-already-linked**:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure these codes are correct for this operation? Copied from somewhere else?

These don't belong here afaik;

  • provider-already-linked
  • credential-already-in-use
  • email-already-in-use

(same again for popup api below this one)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed :)
Also removed the phone errors since it would use reauthenticateWithCredentials

Copy link
Member

@Salakar Salakar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor code doc issue

Verified

This commit was signed with the committer’s verified signature.
Lyokone Guillaume Bernos
@Lyokone Lyokone requested a review from Salakar September 22, 2022 11:56
@Lyokone Lyokone force-pushed the feat/reauthenticate branch from 56d221d to 907dcc9 Compare September 22, 2022 11:56
@Lyokone Lyokone merged commit dad6b48 into master Sep 22, 2022
@Lyokone Lyokone deleted the feat/reauthenticate branch September 22, 2022 12:49
@prggTheProgrammer
Copy link

So if I am correct @Lyokone, you also added reauthenticateWithPopup (this method is also in the docs), but I can't really use this method because it wasn't added to the main firebae_auth package, only to the firebase_auth_platfrom_interface and firebase_auth_web. So could you add that as well?

@Lyokone
Copy link
Contributor Author

Lyokone commented Oct 10, 2022

@prggTheProgrammer Thanks for the heads up, I've created a PR to fix that :)

@firebase firebase locked and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants