Where communities thrive
your own community
Explore more communities
JSON Web Token Authentication for Laravel
I'm still not able to get a token from the attempt method
Did u make the changes as in
I seem to remember from your snippet that you posted. You had
in the getJWTSubject method
This is what the illuminate auth adapter will use to retrieve the authenticated user. So you should change this to
for it to work
Yeah, I had messed up that when trying to figure out the error; but I've since changed url to id; the aforementioned error still persists though!
Hi, if i have a token created from a laravel application with the jwt-auth package. Can verify the token in a microservice with the same jwt-auth package if i have the same secret?
Solved .I had two different versions of jwt-auth package that was causing a signed failed.
so is Lumen 5.2 officially covered? Seeing a lot of make-it-works in the issues but can't tell if it's now fully covered
Hi everyone !!!
Need support on JWT getting started !!!
I am not able to get started
which part do you need help on?
Hi, I was wondering if anyone could clear something up that I'm a bit confused about.
When a user authenticates and gets a token, is the token refreshed every time they make a request? Or do they keep the same token?
You need a local storage concept
If "rememberMe" flag is set by user then in your backend impl you do not set an experation
How can I pass conditions to the login process apart from the user's credentials, I want to pass a condition to check if the user is active, from the active column in the users table
U can add a tenant
Once I add that, how would I pass it to the JWT::attempt()
decode the token and read the parameter....