Experience user password

Is there an API to retrieve an experience user’s password knowing the experience userid?

No, for security purposes we never expose an Experience User’s password.

There is, however, an API to change a user’s password: the Experience User: Patch endpoint.

You can also change it through the User: Update Node.

If you are trying to build an Experience User password reset flow, we do have an entry in our Template Library demonstrating how to do it. I recommend importing that template instead of trying to build that yourself.

The reason I want to get/verify the password of the user is I am building an Android phone Login app and get access to some device info etc if the password matches.

Is there any other way to validate login userid and password on phone app?

My web app and phone app will be bit different. I want the phone app after successful login to go to a different homepage than the web app

I have an assigned experience user. Using the below api
https://api.losant.com/auth/user
I get the following response. Not sure why?

{
“type”: “Unauthorized”,
“message”: “Unauthorized”
}
The correct email and password is given in the body. But it works for other assigned users.

Is there any other way to validate login userid and password on phone app?

You can authenticate Experience Users with the Authenticate Node. Given an email address and password submitted through an Experience Endpoint POST request, you can provide them to the node to determine if the user’s credentials are correct and issue a token in the reply if so.

I have an assigned experience user. Using the below api
https://api.losant.com/auth/user
I get the following response. Not sure why?

That endpoint is for authenticating a Losant user against the Losant API - not an Experience User against your End User Experience. You’ll need to build your own endpoint to authenticate against, using the workflow engine to validate credentials passed in the request as described above.


We have a lot of educational resources around building out an application experience, including:

The specific template that provides an experience user auth endpoint is called “Experience Authentication Endpoint” and it can be imported into your application here:

https://app.losant.com/applications/recent/template-library/5fb57432758bd20541c47b32?templateId=5fb5743a758bd20541c47b33