From 8cb468d75e0286e4fb2308614acead21be736002 Mon Sep 17 00:00:00 2001 From: Facundo Inza Date: Tue, 3 Oct 2023 14:08:47 -0400 Subject: [PATCH] fix: Token error in cookies --- utils/token.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/token.ts b/utils/token.ts index 90dc2ff..ec61516 100644 --- a/utils/token.ts +++ b/utils/token.ts @@ -1,5 +1,4 @@ import currentEnv from '@/config'; -import { deleteCookie } from 'cookies-next'; import { jwtVerify } from 'jose'; @@ -13,7 +12,6 @@ export const validateToken = async (token: string) => { return payload; } catch (error) { - deleteCookie('token'); return null; } };