Well, you want to use the token to make sure not somebody else is sending emails. You can, for example, connect the API-token to the current logged in user.
Apr 21, 2020
2
Level 7
API Authentication required
Hi,
I'm building a simple API to send some emails as a service for my static websites. It's my first effort to create an API so I'm figuring things out :)
I was now thinking about using API-token generated via Sanctum to protect the API. The static website uses vuejs and axios to send the requests. As that's purely front-end, is it still useful to use the token?
Please or to participate in this conversation.