Auth0 Home Blog Docs

API login with email and password


#1

Is there a way to login a user with their email and password and receive a token back using the authentication api. I am making the api call from a mobile client app. Thanks in advance.


#3

if you’re making an api call from a mobile web app I would suggest using the Implicit Grant and you’ll get an access token back. Here are some helpful documentation on the Implicit Grant: https://auth0.com/docs/api-auth/tutorials/implicit-grant, https://auth0.com/docs/api-auth/grant/implicit.

There is also the Authorization Code (PKCE) for native apps. More documentation for the Authorization Code Gran: https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce


#4

Thank you for your response. I have looked at those examples and I am still confused. It seems to me that there should be a way to put the email and password into the body of a request and call an endpoint to get a token. I do not see any of those examples using the users email and password. Is there anyway that you can show me an example on how to perform this action? Thanks.