mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-04-07 22:46:59 +05:30
Too idealistic. Should allow the client and server have some time difference.
This commit is contained in:
@@ -84,7 +84,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if ((int) $params->get('ts') !== time()) {
|
||||
if (abs($params->get('ts') - time()) > 3600) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user