Skip to content

Commit

Permalink
fix: fix password protect cookie name
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle committed May 30, 2024
1 parent 2fbf2be commit d23ab62
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-eels-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blinkk/root-password-protect': patch
---

fix: fix password protect cookie name
4 changes: 2 additions & 2 deletions examples/blog/root.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default defineConfig({
source: '/protected/**',
// Generated by: `root-password-protect generate-hash "..."`.
password: {
hash: '0f1189fcf0e520662a2720f63befbe25b05722a9f9527bbe607428ecde5c0ee736ca3061e692603330c2d022432ca00ac28ddf8c6031dacfb12be64c335d6b0b',
salt: '7184f0c69d7607317589f47c2442ff20',
hash: '65c933288e2d8c81476add7cc77285c7a3b095a040a2392e0cc79512e8f372124e6c84cea745d70e93bcf147dcc565d464fb3f15d0c299ec435027c1be26d809',
salt: '63e8d444544a61642904b1440cdea79e',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/root-password-protect/src/plugin/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {generateNonce, setSecurityHeaders} from '../core/csp.js';
import {hashPassword, verifyPassword} from '../core/password.js';

const SESSION_COOKIE_HASH = 'password_protect.hash';
const SESSION_COOKIE_SALT = 'password_protect.hash';
const SESSION_COOKIE_SALT = 'password_protect.salt';

export interface PasswordProtectedRoute {
/**
Expand Down

0 comments on commit d23ab62

Please sign in to comment.