Skip to content

Commit

Permalink
fix(authentication): serverAuthCode is null (capawesome-team#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored and Paso committed Apr 19, 2023
1 parent e2aeb9e commit 5c3c657
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shiny-owls-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@capacitor-firebase/authentication": patch
---

fix(android): `serverAuthCode` is null on Play Games Sign-In
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ private GoogleSignInClient buildGoogleSignInClient() {
}

private GoogleSignInClient buildGoogleSignInClient(@Nullable final PluginCall call) {
GoogleSignInOptions.Builder gsob = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
GoogleSignInOptions.Builder gsob = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
.requestIdToken(pluginImplementation.getPlugin().getContext().getString(R.string.default_web_client_id))
.requestServerAuthCode(pluginImplementation.getPlugin().getContext().getString(R.string.default_web_client_id))
.requestEmail();

if (call != null) {
Expand Down

0 comments on commit 5c3c657

Please sign in to comment.