We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 968bb1d commit 500045dCopy full SHA for 500045d
.htaccess
@@ -0,0 +1,4 @@
1
+<Files "client_secrets.json">
2
+ Order Allow,Deny
3
+ Deny from all
4
+</Files>
plugin.php
@@ -58,9 +58,9 @@ function atomarch_google_auth() {
58
59
} else {
60
// Exchange an authorization code for an access token
61
- $client->fetchAccessTokenWithAuthCode($_GET['code']);
+ $token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
62
//Store Access Token in a session variable
63
- $_SESSION['access_token'] = $client->getAccessToken();
+ $_SESSION['access_token'] = $token;
64
65
if ( atomarch_check_domain($client) === false ) {
66
$client->revokeToken();
0 commit comments