Skip to content

Commit

Permalink
fix: change unset cookie to set null
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrChabatul committed Aug 9, 2024
1 parent 1a4e48c commit fc3bf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/apps/api/src/services/auth/auth.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const setTokenCookies = ({ ctx, accessToken }: { ctx: AppKoaContext; acce
};

export const unsetTokenCookies = (ctx: AppKoaContext) => {
ctx.cookies.set(COOKIES.ACCESS_TOKEN);
ctx.cookies.set(COOKIES.ACCESS_TOKEN, null);
};

export default {
Expand Down

0 comments on commit fc3bf0f

Please sign in to comment.