Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Increase expiry time of tokens from 5 to 20 minutes (#913)
Browse files Browse the repository at this point in the history
It should still be pretty secure. This allows the app to go easier on
the refreshing, and it makes sure that you can upload large files
without having the token expire halfway through.
  • Loading branch information
rijkvanzanten authored Apr 26, 2019
1 parent ef40463 commit 42d3f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Directus/Authentication/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(UserProviderInterface $userProvider, array $options
throw new Exception('auth: secret key is required and it must be a string');
}

$ttl = ArrayUtils::get($options, 'ttl', 5);
$ttl = ArrayUtils::get($options, 'ttl', 20);
if (!is_numeric($ttl)) {
throw new Exception('ttl must be a number');
}
Expand Down

0 comments on commit 42d3f4a

Please sign in to comment.