Skip to content

Commit

Permalink
Improve code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Oct 21, 2024
1 parent 1ec69a3 commit edc6382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ async function refreshJwt(jwtPayload) {
if (responsePayload?.error) {
if (responsePayload?.error === 'invalid_token') {
// The Access Token is valid for 4 hours, you can get a new one using a
// Refresh Token. When it has expired the Frontier API returns an
// invalid_token error.
// Refresh Token. When the Refresh Token itself has expired the Frontier
// API returns an invalid_token error.
throw new Error('Frontier API Refresh Token has expired')
} else {
console.error('Error response returned by Frontier API while refreshing Access Token', responsePayload)
Expand Down

0 comments on commit edc6382

Please sign in to comment.