Search Results :×
The Laravel Passport is a package provided by the Laravel community that transforms your Laravel application into an OAuth 2.0 Server. With Laravel Passport you can use just one set of credentials to login into your OAuth-compliant applications using the Laravel website’s credentials.
Passport or Sanctum Authentication
When looking out for authentication methods, you need to be sure about the approach that you wish to go for. Here is a brief about both Laravel Passport and Laravel Sanctum libraries to help you choose which one would be the best for you.
Laravel Passport is an OAuth server implementation that provides OAuth authorization for your application. In contrast, Laravel Sanctum is an authentication library that provides cookie-based authentication for Single page applications as well as "simpler" token-based authentication for OAuth clients that require it (e.g., mobile apps).