Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
fix: condition added to handle undefined exp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mritunjay Kumar authored and Mritunjay Kumar committed Aug 23, 2023
1 parent 35674b9 commit f5873ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-libs/common/src/Affinity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Affinity {
}
} else {
if (!payload.exp || payload.exp < Date.now()) {
throw new Error('Token expired')
throw new Error('Token expired or invalid expiration')
}
}

Expand Down

0 comments on commit f5873ee

Please sign in to comment.