Skip to content

Conversation

@pmmucsd
Copy link

@pmmucsd pmmucsd commented Mar 6, 2024

Adds the ability to pass in a list of scopes and returns the oAuth access token with the FirebaseAuthenticationResult. This enables developers to use this library to request access to Google Services like Drive and Gmail in the signup flow.

Copy link
Contributor

@FilledStacks FilledStacks left a comment

Choose a reason for hiding this comment

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

Left a few questions before I continue with the PR test and merge


final firebaseAuth = FirebaseAuth.instance;
final GoogleSignIn _googleSignIn = GoogleSignIn();
GoogleSignIn? _googleSignIn;
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the benefit of going to a nullable GoogleSignIn object and not using late?

AuthCredential credential,
) async {
return firebaseAuth.signInWithCredential(credential);
return await firebaseAuth.signInWithCredential(credential);
Copy link
Contributor

Choose a reason for hiding this comment

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

We do we need to await here if the calling function should be awaiting the future?


/// Firebase additional user information
final AdditionalUserInfo? additionalUserInfo;
final String? oAuthAccessToken;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice addition here.

Copy link
Contributor

@FilledStacks FilledStacks left a comment

Choose a reason for hiding this comment

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

Remove the change of repository to your own repo

pubspec.yaml Outdated
version: 2.20.0
homepage: https://stacked.filledstacks.com/
repository: https://github.com/Stacked-Org/firebase_auth.git
repository: https://github.com/pmmucsd/firebase_auth.git
Copy link
Contributor

Choose a reason for hiding this comment

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

This change will not go in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants