Skip to content

Commit

Permalink
fix JWT access token always being 1 hr
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jan 2, 2020
1 parent 98f7fb6 commit 399508b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/api/app/Controller/HostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private function _getCredentials($generate_refresh_token=false, $token='', $user
}*/

$access_issued_at = time();
$access_ttl = (ZM_AUTH_HASH_TTL || 2) * 3600;
$access_ttl = max(ZM_AUTH_HASH_TTL,1) * 3600;

// by default access token will expire in 2 hrs
// you can change it by changing the value of ZM_AUTH_HASH_TLL
Expand Down

0 comments on commit 399508b

Please sign in to comment.