Learn more about passing tokens in requests.
http://multiple-tokens-auth.test/api/login?id=1
Requires param id
.
Creates and prints a new token.
http://multiple-tokens-auth.test/api/user?api_token=abc123
Requires authorization.
Returns the current user.
http://multiple-tokens-auth.test/api/logout?api_token=abc123
Requires authorization.
Deletes the token used in the request.
http://multiple-tokens-auth.test/api/purge?api_token=abc123
Requires authorization.
Deletes all tokens created for a user.
The Laravel framework is open-sourced software licensed under the MIT license.