diff --git a/MIT b/MIT index 98fb54ea..dc69e6d0 100644 --- a/MIT +++ b/MIT @@ -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 diff --git a/README.md b/README.md index 7980b995..b9f8a339 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 4a775083..102a0bbe 100644 --- a/package.json +++ b/package.json @@ -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.", diff --git a/plugin.xml b/plugin.xml index 85a3268c..ec13ede6 100755 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="5.1.2"> Google SignIn diff --git a/src/android/GooglePlus.java b/src/android/GooglePlus.java index 4e643707..bacf5127 100644 --- a/src/android/GooglePlus.java +++ b/src/android/GooglePlus.java @@ -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); } }