58c1499e by Jeff Balicki

33

1 parent 2d8a428f
......@@ -149,6 +149,7 @@ $app->get('/activities', function () use ($app, $client, $plus) {
// Revoke current user's token and reset their session.
$app->post('/disconnect', function () use ($app, $client) {
error_log('destroy_start');
$token = json_decode($app['session']->get('token'))->access_token;
$client->revokeToken($token);
// Remove the credentials from the user's session.
......