Skip to navigation

Change password

Use this method after a user has signed in with a username and password. They must provide their current password and the new password. This changes the account password; it does not sign out other sessions unless your app separately ends them.

SDK version: V3 Beta. These examples use the current downloads. V1 and V2 use different APIs; choose them in the version selector.

Each example assumes app is the AuthlyX client you created in Connect your app. Read Results for how each language receives the answer.

app.changePassword("CURRENT_PASSWORD", "NEW_PASSWORD", result =>
{
Console.WriteLine(result.ok ? "Password changed" : result.message);
});

Never log passwords or send them to your own analytics. Use the SDK’s result to show a success or error message in your own interface.