
This feature is inspired by GitHub and other applications which issue "personal access tokens". Let's discuss each before digging deeper into the library.įirst, Sanctum is a simple package you may use to issue API tokens to your users without the complication of OAuth.

Laravel Sanctum exists to solve two separate problems. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform. Sanctum allows each user of your application to generate multiple API tokens for their account.

Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs.
