I just start learning L4, begining with Oauth by Artdarek.
I can login using google but i cant find a way to logout by unset Session token or something like that. I already read document on github but just login, no logout example in there.
Tried Session::flush();
Auth::logout();
but it is not working.
Using the google logout url works fine but it is logging out all google web apps (gmail etc).
Is there a way to clear google session?
You can use following code to clear your google tokens:
$google = OAuth::consumer('Google');
$google->getStorage()->clearAllTokens();