handisb's avatar

Lumen JWT Authentication Not Working

I'm trying to set tymon/jwt-auth up with Lumen, but every time I try to login in with the credentials of a user in the users table, it gives me an "Unauthorized" error.

I followed the step-by-step guide for setting up the jwt-auth package from the jwt-auth docs. My AuthController is exactly the same as theirs and so are my routes.

I should also mention that my users table is in a separate database, and the name of the database connection is "accounts" because it was giving me a "Database connection [accounts] not configured" error.

Any help on this would be appreciated.

0 likes
0 replies

Please or to participate in this conversation.