Page MenuHomePhabricator

D7466.id16823.diff
No OneTemporary

D7466.id16823.diff

Index: src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
===================================================================
--- src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
+++ src/applications/auth/provider/PhabricatorAuthProviderOAuth.php
@@ -282,9 +282,9 @@
// Don't return a token with fewer than this many seconds remaining until
// it expires.
$shortest_token = 60;
-
if ($access_token) {
- if ($access_expires > (time() + $shortest_token)) {
+ if ($access_expires === null ||
+ $access_expires > (time() + $shortest_token)) {
return $access_token;
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 20, 3:03 AM (4 h, 21 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6622354
Default Alt Text
D7466.id16823.diff (673 B)

Event Timeline