Skip to content

Commit

Permalink
fix(api): fix condition typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrl23 committed Sep 5, 2024
1 parent 79d2912 commit df962c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/auth/authService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class AuthService {
const expires = new Date(info.expires);
const now = new Date();

if (now <= expires) {
if (now >= expires) {
throw new Unauthorized('API key expired');
}
}
Expand Down

0 comments on commit df962c0

Please sign in to comment.