Commit 4bacc8b2 authored by Zoltán's avatar Zoltán

refresh token segitsegevel access token frissitese

parent a5610610
......@@ -30,8 +30,10 @@ class AuthSCHClient {
} else {
// load tokendata from session
$this->tokens = unserialize($_SESSION['tokens']);
if($this->tokens->lastUpdate + 3600 < time())
if($this->tokens->lastUpdate + 3600 < time()) {
$this->reauthenticate();
$_SESSION['tokens'] = serialize($this->tokens);
}
}
} else {
$this->tokens = $tokens;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment