salahadin-dinsafa / realworld-front

Conduit realworld frontend application
https://realworld-tau.vercel.app
0 stars 0 forks source link

Error: iron-session: Bad usage. Missing cookie name. #1

Open geromegrignon opened 3 weeks ago

geromegrignon commented 3 weeks ago

By following the instructions from the README file, I created the env file before running npm run dev.

I populated with these information:

COOKIE_NAME=donuts
COOKIE_PASSWORD=donuts
BASE_URL=https://api.realworld.io/api
NEXT_PUBLIC_RELATIVE_PATH=http://localhost:3000/api

But i get Error: iron-session: Bad usage. Missing cookie name. error. How to fix it?

salahadin-dinsafa commented 2 weeks ago

COOKIE_PASSWORD length must be at least 32 character you can read more here

https://www.npmjs.com/package/iron-session

salahadin-dinsafa commented 2 weeks ago

Dear cookies password length must be at least 32 character

On Tue, Aug 20, 2024, 7:56 AM Gerome Grignon @.***> wrote:

By following the instructions from the README file, I created the env file before running npm run dev.

I populated with these information:

COOKIE_NAME=donuts COOKIE_PASSWORD=donuts BASE_URL=https://api.realworld.io/api NEXT_PUBLIC_RELATIVE_PATH=http://localhost:3000/api https://api.realworld.io/apiNEXT_PUBLIC_RELATIVE_PATH=http://localhost:3000/api

But i get Error: iron-session: Bad usage. Missing cookie name. error. How to fix it?

— Reply to this email directly, view it on GitHub https://github.com/salahadin-dinsafa/realworld-front/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUGGDKJQ7JPTYZH3D2C5CBLZSLD6RAVCNFSM6AAAAABMZCWMDOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TINZRGY2TGNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>