Secret not working
I have provided a secret_key to the bettwer auth config and it is still defaulting to better-auth-secret-123456789
3 Replies
did you provide
BETTER_AUTH_SECRET
env or directly in the config?I am also using svelte kit and I was able to have it working properly. Where are storing
BETTER_AUTH_SECRET
if you have it in .env.local
or something try moving it to .env
it might help. I can remember I was also facing a similar issue.yes I did
yes it is in the .env and I even tried putting it directly but it did not work
I was just confused
It worked when I paased it directly using the $nv from sveltekit
It got fixed and I was looking at better auth not setting a cookie so I thought the secret could be the issue
I logged the auth options and the secret was there
Now I have resolved the cookie problem and it's working just fine