Skip to content

Conversation

@demolaf
Copy link

@demolaf demolaf commented Oct 23, 2025

P6 - Implement OAuth flows with scopes/customParameters; Apple supports locale.
P7 - Generic handler by providerId, scopes, customParameters, with customizable button (label/icon/color).

  • LocalAuthUIStringProvider.current for injecting single string provider from AuthUIConfiguration
  • flows with scopes/customParameters
  • apple locale override support for button
  • Generic OAuth provider; providerId, scopes, customParameters, with customizable button (label/icon/color)
  • update firebase brand auth logo and app icon
  • translations for sign in with LINE
  • generic/custom user defined oauth example with sign in with discord.
sign_in_with_github_and_LINE.webm
sign_in_with_generic_oauth_discord.webm

@demolaf demolaf marked this pull request as draft October 23, 2025 17:18
@demolaf demolaf changed the title Feat/p6 p7 feat: OAuth Providers (Twitter, GitHub, Microsoft, Yahoo, Apple), Generic OAuth Provider Oct 23, 2025
- flows with scopes/customParameters
- apple locale override support for button
- providerId, scopes, customParameters, with customizable button (label/icon/color)
- update firebase brand auth logo and app icon
- translations for sign in with LINE
- generic/custom user define oauth example with sign in with discord.
@demolaf demolaf marked this pull request as ready for review October 24, 2025 08:46
Copy link
Contributor

@Lyokone Lyokone left a comment

Choose a reason for hiding this comment

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

Logs to be removed but looking good otherwise

Comment on lines 89 to 91
MICROSOFT("microsoft.com", providerName = "Microsoft"),
YAHOO("yahoo.com", providerName = "Yahoo"),
APPLE("apple.com", providerName = "Apple"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Are those not considered social provider here?

Copy link
Author

Choose a reason for hiding this comment

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

yes actually

// Log.d("GoogleSignIn", "Successfully authorized scopes: ${provider.scopes}")
} catch (e: Exception) {
// Log.w("GoogleSignIn", "Failed to authorize scopes: ${provider.scopes}", e)
// Continue with sign-in even if scope authorization fails
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove the 3 commented logs here

Comment on lines 179 to 183
// Log.d(
// "OAuthSignIn",
// "Successfully obtained OAuth credential for ${provider.providerName}"
// )
// The user is already signed in via startActivityForSignInWithProvider/startActivityForLinkWithProvider
Copy link
Contributor

Choose a reason for hiding this comment

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

REmove logs

@demolaf demolaf merged commit 9654e5c 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