I wondered if there was a reason not to use the built-in session for authentication of requests rather than custom tokens. The session id could be sent with the request the same way the access token currently is, however it would provide a number of advantages over the current access token system:
- Built in expiry - access tokens currently don't expire which is a security risk
- Automatic integration with Laravel's auth system without needing extra tables, classes
- Considerably less code to maintain in the plugin