File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
android/src/main/java/com/codetrixstudio/capacitor/GoogleAuth Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public void load() {
2929 String clientId = this .getContext ().getString (R .string .server_client_id );
3030 GoogleSignInOptions .Builder googleSignInBuilder = new GoogleSignInOptions .Builder (GoogleSignInOptions .DEFAULT_SIGN_IN )
3131 .requestIdToken (clientId )
32+ .requestServerAuthCode (clientId )
3233 .requestEmail ();
3334
3435 try {
@@ -77,6 +78,7 @@ private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
7778
7879 JSObject user = new JSObject ();
7980 user .put ("serverAuthCode" , account .getServerAuthCode ());
81+ user .put ("idToken" , account .getIdToken ());
8082 user .put ("authentication" , authentication );
8183
8284 user .put ("displayName" , account .getDisplayName ());
You can’t perform that action at this time.
0 commit comments