Skip to content

Commit

Permalink
fix: correctly handle expired tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Jan 29, 2025
1 parent 4e92947 commit 7e0b429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/token_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class TokenService implements TokenServiceImplementation {
response => response.items?.[0]?.payload
);
if (user) {
const expiredTokenList = user?.tokens?.length > 0 && user.tokens.filter(
const expiredTokenList = user?.tokens?.filter(
obj => obj?.expires_in && (obj.expires_in.getTime() < new Date().getTime())
);
let token_name;
Expand Down

0 comments on commit 7e0b429

Please sign in to comment.