Level 24
If you are in Laravel 7.x, maybe you can use:
https://laravel.com/docs/7.x/sanctum
But, if you are not, you can use:
https://laravel.com/docs/6.x/api-authentication
In recent versions you can use oAuth for any purpose:
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello!
I want to make an API for my frontend(in other application) and mobile app. Both of them will be first party apps. Which authentication flow should I use? Password grant type? How to store securely client_secret?
Please or to participate in this conversation.