Skip to main content

All Questions

0 votes
0 answers
31 views

Best way to authenticate and identify individual screens in a Laravel API using Passport

I'm fairly new to Laravel, and I'm working on a project for independent restaurants to have ordering screens (similar to those at McDonald's). This is an API-based application, and I'm using Laravel ...
Unik6065's user avatar
0 votes
0 answers
349 views

Attempt to read property "secret" on null

I'm trying to develop my first webapp with Laravel so I can practice a bit but I've hit a roadblock right at the beginning. I didn't find anything on google regarding this problem, and I already tried ...
Henrique Guimarães's user avatar
0 votes
0 answers
45 views

How to Auth a Client Service with Laravel Passport, NOT a user

I have multiple Laravel applications: the main application and the microservice. I use Laravel Passport. The main application provides API Endpoints for the microservice. Since this involves complaint ...
Christian's user avatar
0 votes
1 answer
131 views

How to securely migrate MD5 hashed passwords to bcrypt on user's first login with Laravel Passport?

I have a Laravel application where I've recently migrated users from an old system. The passwords in the old system were hashed using MD5. I've successfully implemented a solution using Laravel ...
gogo's user avatar
  • 1
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 ...
WellBloud's user avatar
  • 977
1 vote
1 answer
591 views

Laravel Passport login user by custom method, without password

Hello I am using Passport as auth provider. Now I need to login an user programmatically, skipping the password requirement, creating the authtoken and all. This is what I am trying: User model //...
Luca Calabrese's user avatar
0 votes
0 answers
238 views

Laravel 9 + Passport not return data with the success (200) response

In my company we are developing management software with the php stack (Laravel9 with API) + mysql and Passport for login. By decision of the development team we are developing and testing the API all ...
64Bit1990's user avatar
  • 330
14 votes
4 answers
29k views

Call to undefined method Laravel\Passport\Passport::routes()

I tried to use Laravel-passport so I installed this package in my project, but when i wanted to make route i wrote this code in the AuthServiceProvider public function boot() { $this->...
Mahdi khadimi's user avatar
0 votes
2 answers
684 views

Login using passport not return bearer token instead - Laravel 8

I am facing a problem where when I tried to login in postman, the data return after login is not a bearer token but such like this { "success": true, "message": "User ...
Lalat Putih's user avatar
2 votes
4 answers
3k views

Laravel 9 - Not able to generate token with passport

The below is my login function in laravel 9 project. I am trying to create an authentication token through laravel-passport. public function login(Request $request) { $user = User::where('email', $...
Sujith Sandeep's user avatar
-2 votes
2 answers
946 views

How to make login as other user in API using laravel passport?

I am using laravel passport for API authentication. and I want to log in as different users with different roles from superadmin. So how can I achieve this? Please give your suggestions. public ...
Web developer's user avatar
0 votes
1 answer
1k views

Laravel passport – how can I check the validity of refresh token (while not revoking it)?

Using Laravel Passport, how can I check if a refresh token is still valid? I'm not asking about the access token: that one I can verify by requesting any rout implementing the Route::middleware(auth:...
HynekS's user avatar
  • 3,337
-1 votes
1 answer
586 views

laravel passport optional authentication

I have been using Laravel passport to response Api data, I want to response favorite status by user of product if a user login (token paste in header to validate with passport authentication ...
Karat Khamin's user avatar
1 vote
0 answers
335 views

Login user in whole laravel system - web and api

I have a big problem (for my self) we have a laravel project that some pages with livewire and laravel blade (auth with session) and some other with react and API (passport bearers token) user login ...
hamed hosseini's user avatar
0 votes
3 answers
687 views

My login route returns "unauthorised access" Laravel

So I'm trying to make a laravel API for a escorts-like site, anyway, i use Passport for authentification and the register part works but the login one doesnt, and i dont know why, i'll let the ...
Dan Alexandru's user avatar

15 30 50 per page
1
2 3 4 5
8