58c1499e by Jeff Balicki

33

1 parent 2d8a428f
...@@ -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.
......