@jokerdz all of the above, though it depends what do you wanna use the api for?
-
Passport : Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. It is therefore necessary to have a brief knowledge of OAuth2.
-
Sanctum : Sanctum it is a simple package to issue API tokens to your users without the complication of OAuth. Also has built-in functionality for SPA authentication.
In a small application use Sanctum. it's simple and easy
- JWT : Auth (Authentication) is the process of identifying the user credentials. In web applications, authentication is managed by sessions which take the input parameters such as email or username and password, for user identification. If these parameters match, the user is said to be authenticated.
https://stackoverflow.com/questions/61179166/laravel-auth-vs-passport-vs-sanctum