All Questions
143 questions
2
votes
0
answers
89
views
How to use Cookies based session authentication (Sanctum from Laravel 11) with Vue3
I have two platforms: one built with pure PHP and session-based authentication, and the other using Laravel 11 and Vue 3.
We have the authentication logic implemented on the first platform, and I'm ...
3
votes
0
answers
222
views
How do you setup Laravel Passport so it returns JWTs for multiple types of authentication?
so I am stuck on this for several days now. My ultimate goal is to break down an old monolith application into a micro-service architecture and the very 1st step is to extract quite complex ...
1
vote
1
answer
321
views
How to remove 'Bearer' prefix in Swagger laravel?
My JWT token requires Bearer prefix every time I enter the token in swagger.
So how can I remove this Bearer prefix usage in Laravel? If I do not prefix it, the authorization fails.
I have tried to ...
1
vote
2
answers
641
views
Invalidate/Clear all JWT tokens for a Laravel App
I am deploying a Laravel backend app that is being used as an API service for a frontend app, and a lot of breaking changes were made to the laest version of the app, is it possible to invalidate all ...
3
votes
1
answer
3k
views
What are the technical differences between using Laravel Sanctum vs tymon/jwt-auth for API authentication in a Laravel application? [closed]
So i was wondering about which to use for authentication of APIs and what are the technical differences between using Laravel Sanctum vs tymon/jwt-auth for API authentication in a Laravel application?....
2
votes
1
answer
2k
views
Should the access and refresh token have the same payload?
I'm creating and application with Laravel and NextJs and I'm developing the authentication and authorization with JWT (https://github.com/PHP-Open-Source-Saver/jwt-auth) but I have some doubts.
The ...
1
vote
0
answers
84
views
Laravel : Attempt Auth Using API with running the AES_ENCRYPT
I'm having a problem trying to authenticate api with the attemp() function in laravel, because I need to run the AES_ENCRYPT function in mysql to be able to match my post data with the data in the ...
1
vote
0
answers
486
views
Laravel 9 php-open-source-saver/jwt-auth auth middleware proper error handling
I'm trying to implement JWT authentication API's in Laravel.
I'm using php-open-source-saver/jwt-auth from https://blog.logrocket.com/implementing-jwt-authentication-laravel-9/
Here's my problem, I'm ...
3
votes
0
answers
2k
views
Laravel session vs sanctum api token vs jwt for a hybrid SPA and mobile app
The Laravel sanctum documentation suggests using the stateful way to authenticte your own SPA and use the API tokens for other purposes. To my knowledge, JWT and Bearer tokens are both more performant ...
-2
votes
2
answers
752
views
How to check the logged in user in multiple guard?
I am using laravel 10. I have 2 guards. One is admin and another is manager . The Auth only authenticate the default one so in the controller construction I have set
public function __construct(){
...
0
votes
0
answers
53
views
Invalid credentials in laravel using jwt
I have uploaded about this problem many more times and none worked for me, I tried my best but still not working. I am not sure where does it go wrong.I have installed tymon/jwt-auth from the ...
0
votes
1
answer
1k
views
Laravel - How can i set the Auth::attempt to a user if i only have a JWT token with the email and the id
I have two projects; the first is just a JWT login that redirects, if successful, to another Laravel project with the token. In the other project, Ivalidatede the token, but that project is already ...
0
votes
0
answers
491
views
Laravel conditionally auth against multiple guards
I have set up where we have 3 different types of users. All three of which is done with jwt auth via this package: https://github.com/PHP-Open-Source-Saver/jwt-auth
We have 3 guard, 3 providers ...
0
votes
1
answer
590
views
Authentication using JWT in laravel
how to create a token in laravel that contains information about a user when he authenticates (login).
This is a login function in controller, when I decode the token, it doesn't contain information ...
0
votes
1
answer
343
views
PHP DocuSing: after updating to Laravel 9 getting the error non successful HTTP code [400] User not found for JWT
I've integrated DocuSign API with my Laravel App few months back with JWT Authentication. It was working without any issues so far.
Two days ago we updated our app to Laravel 9 and since then getting ...