Skip to content
Snippets Groups Projects
Commit d3214a46 authored by Janega Zoltán's avatar Janega Zoltán
Browse files

token session fix

parent afa559ea
Branches
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ class AuthSCHClient {
// get tokens from auth.sch.bme.hu
$this->authenticate();
//save tokendata to session
//save tokendata to session (if we did authentication -> we have refresh token)
if(isset($this->tokens->refresh_token))
$_SESSION['tokens'] = serialize($this->tokens);
} else {
// load tokendata from session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment