Skip to content

Conversation

@demolaf
Copy link

@demolaf demolaf commented Oct 23, 2025

  • Implement Credential Manager flow for Google with scopes, optional serverClientId.
  • Returns Firebase credential; handles no-account/device gracefully.
  • Unit tests covering google sign in, anonymous upgrade and error states.

PENDING:

  • e2e tests
  • requestIdToken/profile/email respected
sign_in_with_google.webm

- unit tests covering google sign in, anonymous upgrade and error states
- updated google auth dependencies
@demolaf demolaf marked this pull request as draft October 23, 2025 16:07
@demolaf demolaf marked this pull request as ready for review October 23, 2025 16:13
try {
signInWithGoogle(context, config, provider)
} catch (e: AuthException) {
// Log.d("rememberGoogleSignInHandler", "exception: $e")
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this

authorizationProvider.authorize(context, requestedScopes)
// Log.d("GoogleSignIn", "Successfully authorized scopes: ${provider.scopes}")
} catch (e: Exception) {
// Log.w("GoogleSignIn", "Failed to authorize scopes: ${provider.scopes}", e)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Comment on lines 192 to 194
// Log.d("GoogleSignIn", "Cleared Google credential state")
} catch (e: Exception) {
// Log.w("GoogleSignIn", "Failed to clear credential state", e)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

class MainActivity : ComponentActivity() {
companion object {
private const val USE_AUTH_EMULATOR = true
private const val USE_AUTH_EMULATOR = false
Copy link
Contributor

Choose a reason for hiding this comment

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

we can keep that to true by default

@demolaf demolaf merged commit d7ce8ac into firebase:version-10.0.0-dev Oct 24, 2025
3 checks passed
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