Kiranism / next-shadcn-dashboard-starter

Admin Dashboard Starter with Nextjs14 and shadcn ui
https://next-shadcn-dashboard-starter.vercel.app
MIT License
1.43k stars 302 forks source link

In localhost getting issue after signup #7

Closed gowthm closed 4 months ago

gowthm commented 5 months ago

Can you please explain why i am getting after signup or when redirect dashboard router.

image
Kiranism commented 5 months ago

Hey, can you check and send the error logs in the code editor console?

gowthm commented 5 months ago

https://next-auth.js.org/warnings#nextauth_url [next-auth][warn][NO_SECRET] https://next-auth.js.org/warnings#no_secret [next-auth][error][NO_SECRET] https://next-auth.js.org/errors#no_secret

only getting like this

FYI: I am not update env file

bdhamithkumara commented 5 months ago

first, create .env file like env.example.txt

image

after that run this code in your terminal

openssl rand -base64 32

it will generate code like this

image

after that copy and paste that as your NEXTAUTH_SECRET.

Kiranism commented 5 months ago

@bdhamithkumara appreciate your help!

nfvelten commented 4 months ago

I think it would be nice to add some info about this to the README. It'll help avoid confusion