https://supertokens.com/ logo
migration of user issue
m

mayankgopronto

04/07/2023, 11:01 AM
Hi When trying to migrating users with their password hashes, I get a 400 response with the error
Caused by: io.supertokens.webserver.WebserverAPI$BadRequestException: Password hash is in invalid format
from the core. These are passwords generated by
django
, they are
argon2
hashes, example:
argon2$argon2i$v=19$m=512,t=2,p=2$NG5WSFhyV1p3cWhV$8r0ADt/7D1Og1mglH0qHZg
Any idea what could be going wrong?
r

rp

04/07/2023, 11:33 AM
hey @mayankgopronto can you send the core's error log?
r

rp

04/07/2023, 11:40 AM
@jscyo can help here when he is free
And also which version of the core are you using?
m

mayankgopronto

04/07/2023, 11:41 AM
I'm on
4.4
r

rp

04/07/2023, 11:41 AM
alright. Will wait for @jscyo
j

jscyo

04/07/2023, 11:50 AM
Hey @mayankgopronto can you try removing the initial
argon2
from the password hash and try importing again? so in the example listed above it should be
$argon2i$v=19$m=512,t=2,p=2$NG5WSFhyV1p3cWhV$8r0ADt/7D1Og1mglH0qHZg
m

mayankgopronto

04/07/2023, 12:00 PM
Ya, that works. Thanks a lot!