API Token Authentication
Issuing API Tokens
Sanctum lets you matter API tokens / individual entry tokens which may be always authenticate API demands to your tool. When coming up with needs using API tokens, the token should always be part of the Authorization header as a Bearer token.
Perhaps you may access most of the user’s tokens making use of the tokens Eloquent commitment given by the HasApiTokens attribute:
Sanctum enables you to assign “abilities” to tokens. Performance serve a comparable objective as OAuth’s “scopes”. You may possibly go numerous string performance as the secondly point towards createToken way:
If taking care of an incoming inquire authenticated by Sanctum, you may determine whether the keepsake have a given skill by using the tokenCan means:
First-Party UI Initiated Desires
For benefit, the tokenCan process will always go back accurate in the event that inbound authenticated consult had been because of your first-party day spa and you’re utilizing Sanctum’s integral day spa authentication.