RBTech
10/01/2025, 5:42 AM{
errorCode: "E062901",
errorDescription: "Invalid signin credentials",
}Meir Wahnon
10/01/2025, 5:43 AMMeir Wahnon
10/01/2025, 5:43 AMRBTech
10/01/2025, 5:44 AMP3332Fy6YtvcpFpykFB6tF8zXNAjRahul Rijhwani
10/01/2025, 5:50 AMRahul Rijhwani
10/01/2025, 7:08 AM"hashedPassword": {
"argon2": {
"hash": "base64 string",
"salt": "base64 string",
"iterations": 8,
"memory": 8192,
"threads": 1
}
},
If any parameter is incorrect or missing, authentication will fail. Double-check your migration data and try again.
Docs: https://docs.descope.com/migrate/custom
Commons error: https://docs.descope.com/common-errorsRBTech
10/01/2025, 10:29 AMhash and salt ?Rahul Rijhwani
10/01/2025, 10:41 AMRBTech
10/01/2025, 12:49 PMhash and salt are base64 encoded. I did another migration test, users were successfully created in Descope but got the same error when I tried to login.Rahul Rijhwani
10/01/2025, 3:30 PMRBTech
10/02/2025, 2:15 AMRBTech
10/02/2025, 1:02 PMCreate Password action was logged when I set the user password via management API, I think this means that during UserCreated action, password was not set.RBTech
10/02/2025, 1:02 PMRBTech
10/02/2025, 1:03 PMLoginSucceeded action logged after I set the user password via management APIRBTech
10/03/2025, 3:33 AMRBTech
10/03/2025, 3:39 AMRBTech
10/03/2025, 3:43 AMGET /v1/mgmt/user - migrated users has password: false - this that password is not set for users.Rahul Rijhwani
10/03/2025, 5:42 AMRahul Rijhwani
10/03/2025, 7:33 AMUserCreated event. According to the audit events documentation, the CreatePassword event indicates "A password has been created for a user"
Your timeline shows:
• UserCreated - User created without password
• UserModified - User details updated
• CreatePassword - Password created via management API
• UserModified - User updated again
• ChangePassword - Password changed
• LoginFailed - First login attempt failed
• LoginSucceed - Login eventually succeeded
This sequence suggests the password migration during user creation didn't work properly. The Create operation from the management SDK documentation shows it doesn't send an invite by default
const resp = await descopeClient.management.user.create(
loginId,
{
email,
phone,
displayName,
// picture,
verifiedEmail,
verifiedPhone,
customAttributes,
additionalLoginIds,
// userTenants,// either userTenants or roles
roles,
}
);
For proper password migration, you need to include the hashed password in the initial user creation request. The separate CreatePassword event indicates you had to set the password afterward using a management API call, which explains why the initial login failed with error E062901 "Invalid signin credentials"
Refer docs : https://docs.descope.com/audit-trails-and-integrations/audit-events
https://docs.descope.com/management/user-management/sdks
https://docs.descope.com/common-errorsRahul Rijhwani
10/03/2025, 7:35 AMpassword: false, the Argon2 hashed passwords weren't properly included during user creation. This confirms that the password migration didn't work properly during the initial user creation.
you'll need to either:
1. Re-migrate with the correct hashed password format included in the initial user creation
2. Use the management SDK to set passwords for existing users
For setting passwords on existing users, you can use the setActivePassword method
Check this doc: https://docs.descope.com/management/user-management/sdks#set-an-active-password-for-userRBTech
10/05/2025, 6:12 AMRahul Rijhwani
10/06/2025, 6:45 AM