Skip to content

Commit e197c86

Browse files
author
Cerlin
committed
Creating new `jti` for new token info
1 parent 1c6aabb commit e197c86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Box/Auth/AppAuth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function getTokenInfo()
9898
{
9999
if (($this->token_info->issued_time + $this->token_info->expires_in) < time()) {
100100
$this->claim->exp = time() + 10;
101+
$this->claim->jti = substr(str_shuffle(str_repeat($x = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil(32 / strlen($x)))), 1, 32);
101102
$this->authenticate($this->claim);
102103
}
103104
return $this->token_info;

0 commit comments

Comments
 (0)