Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Törcsvári Gergő
AuthSCH - Client
Commits
5ebd8c5a
Commit
5ebd8c5a
authored
Jul 17, 2014
by
Zoltán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refresh token segitsegevel access token frissitese
parent
4bacc8b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
php/AuthSCHClient.class.php
php/AuthSCHClient.class.php
+6
-4
No files found.
php/AuthSCHClient.class.php
View file @
5ebd8c5a
...
...
@@ -30,10 +30,12 @@ class AuthSCHClient {
}
else
{
// load tokendata from session
$this
->
tokens
=
unserialize
(
$_SESSION
[
'tokens'
]);
if
(
$this
->
tokens
->
lastUpdate
+
3600
<
time
())
{
$this
->
reauthenticate
();
$_SESSION
[
'tokens'
]
=
serialize
(
$this
->
tokens
);
}
}
//refresh access token if it!s too old
if
(
$this
->
tokens
->
lastUpdate
+
3600
<
time
())
{
$this
->
reauthenticate
();
$_SESSION
[
'tokens'
]
=
serialize
(
$this
->
tokens
);
}
}
else
{
$this
->
tokens
=
$tokens
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment