Skip to content

Commit

Permalink
Feature/implements cookie (#722)
Browse files Browse the repository at this point in the history
* feat(cookie): implements cookie encriptation

* fix: update version

* fix: update version

* fix(cookie): fix remove cookie function
  • Loading branch information
michelonsouza authored Dec 25, 2024
1 parent b383b0d commit 8e4a4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "encrypt-storage",
"version": "2.14.00",
"version": "2.14.03",
"description": "Wrapper for encrypted localStorage and sessionStorage in browser",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/encrypt-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ export class EncryptStorage implements EncryptStorageInterface {
return;
}

this.cookie.set(this.#getKey(key), '', { ...options, expires: -1 });
this.cookie.set(key, '', { ...options, expires: -1 });

if (this.#notifyHandler) {
this.#notifyHandler({
Expand Down

0 comments on commit 8e4a4c3

Please sign in to comment.