Skip to content

Commit

Permalink
fix: Token error in cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
FacundoInza committed Oct 3, 2023
1 parent c96ad03 commit 8cb468d
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 8cb468d

Please sign in to comment.