Skip to content

Commit

Permalink
🚚 Changed error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVries committed Sep 27, 2024
1 parent fce9119 commit 49c278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/CheckIfTokenIsFresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function handle(Request $request, Closure $next): mixed

if ($token->hasBeenIssuedBefore($ageThreshold)) {
throw new InvalidAccessTokenException(
"The access token cannot be older than {$this->tokenMaxAge} minutes for this request.",
"The access token cannot be older than {$this->tokenMaxAge} minutes for this request. Please request a new access token to continue.",
);
}

Expand Down

0 comments on commit 49c278c

Please sign in to comment.