krisanalfa / lumen-jwt

Lumen with JWT Authentication, Dingo API and CORS Support
258 stars 80 forks source link

Why use login? and not just /auth #49

Open jackkitley opened 6 years ago

jackkitley commented 6 years ago

Sorry but just had a question regarding the API.

I see that there is /auth and then /login. I use the auth request to get a token and expiry date but then do a login after the auth request to get the users details.

Why would i want to use the /login if i was already authenticated from the /auth request? In the auth request i can return the user details.

If there is a reason then i would love to know why.

Thanks