Skip to content

fix: support new users in Google Sign-In with authorized accounts fallback pattern#2295

Merged
demolaf merged 3 commits into
version-10.0.0-beta02from
fix-provider-config
Jan 2, 2026
Merged

fix: support new users in Google Sign-In with authorized accounts fallback pattern#2295
demolaf merged 3 commits into
version-10.0.0-beta02from
fix-provider-config

Conversation

@demolaf
Copy link
Copy Markdown
Member

@demolaf demolaf commented Dec 22, 2025

Changes

  • Added filterByAuthorizedAccounts and autoSelectEnabled configuration options to AuthProvider.Google
  • Implemented automatic fallback: tries authorized accounts first, then shows all accounts if none found
  • Fixed serverClientId initialization to use default_web_client_id when null
  • Improved error message when no Google accounts exist on device
  • The applicationId parameter has been removed from the AuthProvider.Facebook constructor. Configuration values (facebook_application_id, facebook_login_protocol_scheme, and facebook_client_token) are now exclusively read from strings.xml.
  • Added validation to ensure facebook_client_token and facebook_login_protocol_scheme are configured in strings.xml.
  • Updated tests to use resource files for provider configuration instead of constructor arguments.
  • Updated README.md to reflect the new configuration requirements, including adding facebook_client_token.

General Provider Improvements

  • The serverClientId for the Google provider is now automatically populated from R.string.default_web_client_id if not explicitly provided.

Fixes #2294

…er.Google

- The `applicationId` parameter has been removed from the `AuthProvider.Facebook` constructor. Configuration values (`facebook_application_id`, `facebook_login_protocol_scheme`, and `facebook_client_token`) are now exclusively read from `strings.xml`.
- The `serverClientId` for the Google provider is now automatically populated from `R.string.default_web_client_id` if it is not explicitly provided.
- Added validation to ensure `facebook_client_token` and `facebook_login_protocol_scheme` are configured in `strings.xml`.
- Updated tests to use resource files for provider configuration instead of constructor arguments.
- Updated `README.md` to reflect the new configuration requirements, including adding `facebook_client_token`.
@demolaf demolaf marked this pull request as draft December 22, 2025 12:22
…during sign-in

- Add filterByAuthorizedAccounts and autoSelectEnabled properties to AuthProvider.Google
@demolaf demolaf changed the title fix: initialize serverClientId to default_web_client_id in AuthProvid… feat: add filterByAuthorizedAccounts configuration for Google Auth sign-up support Dec 29, 2025
@demolaf demolaf marked this pull request as ready for review December 29, 2025 14:30
@demolaf demolaf changed the title feat: add filterByAuthorizedAccounts configuration for Google Auth sign-up support fix: support new users in Google Sign-In with authorized accounts fallback pattern Jan 2, 2026
@demolaf demolaf merged commit 52d3fe7 into version-10.0.0-beta02 Jan 2, 2026
5 checks passed
@demolaf demolaf deleted the fix-provider-config branch January 2, 2026 17:02
@demolaf demolaf mentioned this pull request Jan 2, 2026
thatfiredev pushed a commit that referenced this pull request Mar 13, 2026
…lback pattern (#2295)

* fix: initialize serverClientId to default_web_client_id in AuthProvider.Google

- The `applicationId` parameter has been removed from the `AuthProvider.Facebook` constructor. Configuration values (`facebook_application_id`, `facebook_login_protocol_scheme`, and `facebook_client_token`) are now exclusively read from `strings.xml`.
- The `serverClientId` for the Google provider is now automatically populated from `R.string.default_web_client_id` if it is not explicitly provided.
- Added validation to ensure `facebook_client_token` and `facebook_login_protocol_scheme` are configured in `strings.xml`.
- Updated tests to use resource files for provider configuration instead of constructor arguments.
- Updated `README.md` to reflect the new configuration requirements, including adding `facebook_client_token`.

* fix: fallback to all Google accounts if no authorized accounts found during sign-in

- Add filterByAuthorizedAccounts and autoSelectEnabled properties to AuthProvider.Google
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants