33
Showing
1 changed file
with
1 additions
and
0 deletions
| ... | @@ -149,6 +149,7 @@ $app->get('/activities', function () use ($app, $client, $plus) { | ... | @@ -149,6 +149,7 @@ $app->get('/activities', function () use ($app, $client, $plus) { |
| 149 | 149 | ||
| 150 | // Revoke current user's token and reset their session. | 150 | // Revoke current user's token and reset their session. |
| 151 | $app->post('/disconnect', function () use ($app, $client) { | 151 | $app->post('/disconnect', function () use ($app, $client) { |
| 152 | error_log('destroy_start'); | ||
| 152 | $token = json_decode($app['session']->get('token'))->access_token; | 153 | $token = json_decode($app['session']->get('token'))->access_token; |
| 153 | $client->revokeToken($token); | 154 | $client->revokeToken($token); |
| 154 | // Remove the credentials from the user's session. | 155 | // Remove the credentials from the user's session. | ... | ... |
-
Please register or sign in to post a comment