Skip to content

Commit

Permalink
feat: add delete cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Pridesd committed Jul 17, 2024
1 parent 8b621bc commit ef93726
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ const setCookie = (name: string, value: string) => {
cookies().set(name, value)
}

export { setCookie }
const deleteCookie = (name: string) => {
cookies().delete(name)
}

export { setCookie, deleteCookie }

0 comments on commit ef93726

Please sign in to comment.