tuandm/laravue-core

Login: Request failed with status code 500

JeffreyHosler opened this issue · 2 comments

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)

@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

ahhh yep I had a typo there. Thanks!