I'm reading about migrating users into Supertokens...
# general
f
I'm reading about migrating users into Supertokens. What is the default password hash for Supertokens?
r
Bcrypt
f
After creating user in Supertokens and updating my db with supertokens_id, do I need to store the bcrypt in my db?
r
U don’t. You need to tell supertokens about the password hash. See our migration guide
f
that's like step 1 in "User Creation" right?
r
Yes
f
right, so I did that and now I just need to run the email verification, correct?
r
Yes
f
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
Only for the ones who log in
Or refresh their session after logging in
f
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
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
this -> Step 5) Update the login flow to account for the isUsingTemporaryPassword flag
r
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
ok, thanks
2 Views