lane711 / sonicjs

SonicJs Headless CMS - Blazing Fast Headless CMS built on Cloudflare Workers. 100% Javascript Based
https://sonicjs.com
906 stars 118 forks source link

Fresh deployment create user is broken #261

Open OultimoCoder opened 3 weeks ago

OultimoCoder commented 3 weeks ago

Fresh deployment with status showing everything ok.

If I create a user I immediately cannot login. I check D1 and password is set to null in the users table.

What can I do? I delete k/v key, user data and user_key data and try again but the same result each time.

I tried copying the hashed password from user_keys into the user password field but it had no effect.

OultimoCoder commented 3 weeks ago

The issue is setting AUTH_KDF = scrypt, removing this env var fixes everything.

lane711 commented 3 weeks ago

Thanks for posting the solution. We're in the process of converting Lucia Auth from 2 to version 3 and will check this to prevent it from occurring to anyone else

OultimoCoder commented 3 weeks ago

Thanks!