Closed connecteev closed 5 years ago
Hey! Thank you for your issue, I'll try on a brand new installation later today.
Note that's it does work on production environment.
Which node version do you have ?
Thanks
Pleasure! Note I have an older version of your codebase working from a few months ago so something broke after that. I'm on a mac with the current node/npm version:
$ node -v
v10.16.2
OneStepAtATime:guillaumebriday_todolist $ npm -v
6.11.3
It actually works fine. Turns out I was missing this step: (previously when prompted I pressed enter so it defaulted to "no", so the jwt secret key was never generated. Not sure if that can be "forced" or added to the Readme, but that might help if others get stuck).
$ php artisan jwt:secret
This will invalidate all existing tokens. Are you sure you want to override the secret key? (yes/no) [no]:
> yes
jwt-auth secret [HU1qui6S5QPzyO0r8pI1ihVo0hDIH02pYzK2VJw9h8riEUenOWK9lPi2siPZVGGr] set successfully.
Haaa that's cool thank you
Do you use a self hosted application for the api ?
@guillaumebriday I use Laravel on my Dev machine for the backend APIs....and Nuxt for the front-end talking to the APIs. Is that what you are asking?
Hum I was wondering if you are using this app in production on your own servers ?
I wanted to know if I should deploy the image on the docker hub to simplify deployments for everyone.
I do have an app (laravel + nuxt) of my own on production, though it's not this one.
Never used Docker (docs seem complex and I never really spent the time to get it running. I'm not sure of the benefit tbh...but I dont know a lot about it).
Just tried the code on the master branch after going through the installation steps here.
I am seeing this error when I register:
Note that the user account DOES get created in the Database, but the /api/v1/auth/me endpoint fails, and subsequently the user stays on the /register page.
Error in console: