'Laravel Sanctum for SPA and Mobile authentication
I have an existing Laravel project which is using Laravel Sanctum to authenticate client request for a React project.
The approach used is SPA (client and server share same top-level domain, no token needed).
I need to create a mobile application and i was reading Mobile Application Authentication documentation from Laravel.
What would be the best approach to have my API working for both client and mobile app requests?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
