DEV Community

Cover image for Laravel Passport: API authentication with access and refresh token

Laravel Passport: API authentication with access and refresh token

M H Hasib on May 22, 2024

In Laravel, we can use authentication systems like Sanctum, and Passport. Still, Passport is one of the most popular authentication systems in Lara...
Collapse
 
masumbillah profile image
Md. Masum Billah

Nice content.

Collapse
 
mahmudulhsn profile image
M H Hasib

Thank you so much bhai <3

Collapse
 
21cse1014karthik_allur_3 profile image
21CSE1014-Karthik Allur

where is json token created

Collapse
 
dean871025 profile image
din abu

Working like charms!

Collapse
 
landtrust profile image
Landtrust

Cool

Collapse
 
mahmudulhsn profile image
M H Hasib

Thanks a lot <3

Collapse
 
mohammed_shibincp_8b0f0 profile image
Mohammed Shibin c p

Thank you

Collapse
 
sabinshrestha8 profile image
Sabin Shrestha

its taking lots of time and throwing it exceeded the timelimit but its updating in my db.

how to fix this?

Collapse
 
rawdev62 profile image
sahoulshj

In my case in the env file APP_URL= you need to change the port must different from the current port example 128.0.0.1:8000 to 128.0.0.1:8001 which handles the oauth2 default route Then run the New server php artisan serve —port 8001.

Collapse
 
yousra_rebai_e18b37921d2c profile image
Yousra Rebai

did you find the solution ihave the same problem
Image description

Collapse
 
ankit_singh_f3ffe956b37cc profile image
Ankit Singh • Edited

i am having same issue

Collapse
 
hctor_ayestarn_9c0e3c82 profile image
Héctor Ayestarán

Password Grant is legacy. It is discouraged by Laravel:
laravel.com/docs/11.x/passport#pas...