We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e41ce commit 1c6aabbCopy full SHA for 1c6aabb
src/Box/Auth/AppAuth.php
@@ -96,7 +96,10 @@ public function authenticate(JWTClaim $claim)
96
*/
97
public function getTokenInfo()
98
{
99
- // TODO: Validate if token is expired and then send
+ if (($this->token_info->issued_time + $this->token_info->expires_in) < time()) {
100
+ $this->claim->exp = time() + 10;
101
+ $this->authenticate($this->claim);
102
+ }
103
return $this->token_info;
104
}
105
0 commit comments