Hi all. I need to make a login functionality in my api , not registration.So I don't want to use Passport or something else. Please help me. How can I do this ?
How do you intend to maintain a "session" in that case? Typically a token-based authentication would be used for an API. JWT-Auth is an alternative to Passort
I want to create api_token in my users table, and render a 60 length string for this, and every time send as a header the user api_token: what do you think about my version?