Empty Password while updating session.
There is password in session config and it is not empty but it keeps saying Empty password.
The error is
Error: Empty password
at seal (file:///E:/Projects/24FM/node_modules/.pnpm/[email protected]/node_modules/iron-webcrypto/dist/index.js:222:11)
at sealSession (file:///E:/Projects/24FM/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1381:24)
at updateSession (file:///E:/Projects/24FM/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1369:26)
at getSession (file:///E:/Projects/24FM/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1355:11)
at async updateSession (file:///E:/Projects/24FM/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs:1361:60)
at async Module.$$function1 (E:/Projects/24FM/src/lib/session.js:21:19)
at async eval (E:/Projects/24FM/src/lib/auth.js:32:18)
Why is that? Please help me :"(
1 Reply
it is not finding the password used for encrypting the user session, in your case is the VITE_SESSION_SECRET environment variable, is it set in your .env file?
oh, i just saw the
i dont think vite will handle the environment here, need to check on vinxi docs.
you can use it will work just fine