Skip to content

Commit

Permalink
Not getting refresh token on the server side using serverAuthCode Edd…
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jan 5, 2018
1 parent a79b9d4 commit 7ad412a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MIT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Eddy Verbruggen
Copyright (c) 2018 Eddy Verbruggen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ window.plugins.googleplus.login(
{
'scopes': '... ', // optional, space-separated list of scopes, If not included or empty, defaults to `profile` and `email`.
'webClientId': 'client id of the web app/server side', // optional clientId of your Web application from Credentials settings of your project - On Android, this MUST be included to get an idToken. On iOS, it is not required.
'offline': true, // optional, but requires the webClientId - if set to true the plugin will also return a serverAuthCode, which can be used to grant offline access to a non-Google server
'offline': true // optional, but requires the webClientId - if set to true the plugin will also return a serverAuthCode, which can be used to grant offline access to a non-Google server
},
function (obj) {
alert(JSON.stringify(obj)); // do something useful instead of alerting
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.1.1",
"version": "5.1.2",
"name": "cordova-plugin-googleplus",
"cordova_name": "Google SignIn",
"description": "Use your Google account to authenticate with the app.",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-googleplus"
version="5.1.1">
version="5.1.2">

<name>Google SignIn</name>

Expand Down
2 changes: 1 addition & 1 deletion src/android/GooglePlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private synchronized void buildGoogleApiClient(JSONObject clientOptions) throws

// if webClientId is included AND offline is true, we'll request the serverAuthCode
if (clientOptions.optBoolean(ARGUMENT_OFFLINE_KEY, false)) {
gso.requestServerAuthCode(webClientId, false);
gso.requestServerAuthCode(webClientId, true);
}
}

Expand Down

0 comments on commit 7ad412a

Please sign in to comment.