Let's briefly talk about a third way of authentication with Sanctum, this time for mobile applications.
Unfortunately, I am not a mobile app developer, so I won't be able to do a demo project. But this course is about building a backend, so we will see how to authenticate a user.
Issuing a token is very similar to how it is done when issuing a token for API-based authentication. A sanctum/token
POST route should replace the login mechanism.
Here is an example of the callback...