0
votes

maybe i have a thinking error. Maybe not. I want to create a API token for my application.

The following scenerio i want to do: I have a Laravel application and now i want to code a mobile app. In the mobile app a user can register. For this i want to have n API token, to prevent that every people can access to my application without the api token. But everything i found in the web is only a api token for a user. But in the Register step i dont have currently a user. So what is the write Solution for this? How can i add a general api token? Is there an existing composer repository or should i code it on my own?

I need to solutions. A generel for registration and login and a specific for access to the laravel application by a logged in user.

I read the sanctum, but this is every time with a existing user

Thanks for your hints.