I have implemented a web logging system in Laravel, there are already users who use this system, but I want those users to also be able to log in to a mobile app so I need to build the login in the API. How could I do it? Could you use the web login?
Api login is different from web ones . In api authetication usually use token
but web authentication use session
.
You can define web authentication and parallel define apis with token . Just in each login you should create api token after authenticate user and return this token to user for other request .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.