Skip to content
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

[firebase_auth_platform_interface] - Expected String got Null, when calling GoogleAuthProvider.credential(...) in google_auth.dart #12252

Closed
NeilFawcett1 opened this issue Feb 1, 2024 · 0 comments · Fixed by #12270
Assignees
Labels
Needs Attention This issue needs maintainer attention. resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working

Comments

@NeilFawcett1
Copy link

NeilFawcett1 commented Feb 1, 2024

Latest Flutter, firebase, etc. Flutter Doctor fine. Applied recent fixes for the JS interop migration, which has fixed getIdToken and can now sign in without this error with username and password. But, the following code throws the string/null error:

                                                  final credential = GoogleAuthProvider
                                                      .credential(
                                                    accessToken: googleAuth?.accessToken,
                                                    idToken: googleAuth?.idToken,
                                                  );

Sorry, should say, this error is on Web. Works fine on Android.

@NeilFawcett1 NeilFawcett1 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Feb 1, 2024
@NeilFawcett1 NeilFawcett1 changed the title [firebase_auth_platform_interface] - Expected String got Null, when calling GoogleAuthProvider in google_auth.dart [firebase_auth_platform_interface] - Expected String got Null, when calling GoogleAuthProvider.credential(...) in google_auth.dart Feb 1, 2024
@Lyokone Lyokone self-assigned this Feb 2, 2024
@firebase firebase locked and limited conversation to collaborators Mar 4, 2024
@TarekkMA TarekkMA added the resolution: fixed A fix has been merged or is pending merge from a PR. label Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants