Skip to content

Commit

Permalink
Merge pull request #82 from FacundoInza/fix/token-error
Browse files Browse the repository at this point in the history
fix: Token error in cookies
  • Loading branch information
FacundoInza authored Oct 3, 2023
2 parents c96ad03 + 8cb468d commit 438c3de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils/token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import currentEnv from '@/config';
import { deleteCookie } from 'cookies-next';

import { jwtVerify } from 'jose';

Expand All @@ -13,7 +12,6 @@ export const validateToken = async (token: string) => {

return payload;
} catch (error) {
deleteCookie('token');
return null;
}
};

0 comments on commit 438c3de

Please sign in to comment.