How to import users with already hashed password?

is it possible to import/create users with already hashed BCrypt passwords similar to Firebase Auth? I didn’t manage to find anything related to this.

Thank You :slight_smile:

Hi Rados,

The short answer to the question is no, this is not supported. The longer answer is that the hashed_password field on a Credential document cannot be modified directly. In fact, there’s an explicit method that’s called on the process that updates passwords to clear any input of a hashed_password on the document that was provided. Only the password field is accepted, and then it is transformed itself to provide the hashed_password before being discarded.

Please let me know if this solves your question or if you still need assistance.