https://supertokens.com/ logo
Title
f

funk101

01/21/2023, 3:39 PM
I'm reading about migrating users into Supertokens. What is the default password hash for Supertokens?
r

rp

01/21/2023, 3:40 PM
Bcrypt
f

funk101

01/21/2023, 4:18 PM
After creating user in Supertokens and updating my db with supertokens_id, do I need to store the bcrypt in my db?
r

rp

01/21/2023, 4:18 PM
U don’t. You need to tell supertokens about the password hash. See our migration guide
f

funk101

01/21/2023, 4:20 PM
that's like step 1 in "User Creation" right?
r

rp

01/21/2023, 4:20 PM
Yes
f

funk101

01/21/2023, 4:20 PM
right, so I did that and now I just need to run the email verification, correct?
r

rp

01/21/2023, 4:21 PM
Yes
f

funk101

01/21/2023, 4:26 PM
this migration will insert 12,840 users. Only about 1600 are "active" users. Will there be a charge for doing this migration? Or only if 5000+ get active? How will this work?
r

rp

01/21/2023, 4:26 PM
Only for the ones who log in
Or refresh their session after logging in
f

funk101

01/21/2023, 4:27 PM
ok
I'm migrating the users with their existing passwords, however, 111 of them have no password. What's the best way to handle that in your docs?
r

rp

01/21/2023, 4:39 PM
For them, call the sign up api of the core with a random password and ask them to do a password reset
Or then generate a random bcrypt password hash and then ask for password reset flow for them
f

funk101

01/21/2023, 4:40 PM
this -> Step 5) Update the login flow to account for the isUsingTemporaryPassword flag
r

rp

01/21/2023, 4:40 PM
You don’t need to do that
Just keep it simple and ask for password reset flow for those users since they r such few
But if you want, you can follow the whole guide for if password hashes are not there. But that’s complicating stuff just for these 100 users
f

funk101

01/21/2023, 4:42 PM
ok, thanks