Skip to content

fix(auth, android): getIdToken() IllegalStateException crash fix - #11362

Merged
russellwheatley merged 7 commits into
masterfrom
auth-11297
Jul 25, 2023
Merged

fix(auth, android): getIdToken() IllegalStateException crash fix#11362
russellwheatley merged 7 commits into
masterfrom
auth-11297

Conversation

@russellwheatley

Copy link
Copy Markdown
Member

Description

see title.

Related Issues

fixes #11297

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.
password: testPassword,
);

await FirebaseAuth.instance.signOut();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there any reason why you are first signing in and then out to reproduce this? Are you not getting this issue if you don't do signIn&signOut first?
Because I can reproduce the issue using any credential, no signout required.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct - I've updated the test.

@bizz84

bizz84 commented Jul 25, 2023

Copy link
Copy Markdown
Contributor

Note that as part of this PR, getIdTokenResult should also be tested (to see if it also throws an exception and needs a fix).

@russellwheatley
russellwheatley merged commit e925b4c into master Jul 25, 2023
@russellwheatley
russellwheatley deleted the auth-11297 branch July 25, 2023 15:43
kutlayhanli pushed a commit to kutlayhanli/flutterfire that referenced this pull request Aug 18, 2023
@firebase firebase locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

6 participants