Login: Request failed with status code 500
JeffreyHosler opened this issue · 2 comments
JeffreyHosler commented
The POST login works and returns a success message. But even with the success login in the console, i get the 500 error message and then this
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token' in 'where clause' (SQL: select * from users
where api_token
= {token} limit 1)
tuandm commented
@JeffreyHosler Thanks for reaching this project. Laravue-core uses jwt for guards api driver. Can you please check your config/auth.php and make sure guards.api.driver is jwt
?
Ref: https://github.com/tuandm/laravue-core#2-config-api-guard
JeffreyHosler commented
ahhh yep I had a typo there. Thanks!