hi folks, i made a repo containing a bunch of scri...
# showcase
j
hi folks, i made a repo containing a bunch of scripts my team used to migrate our users from firebase auth to supabase auth ๐Ÿ‘‰ https://github.com/liaujianjie/firebase-to-supabase-auth-migrator
we used a variant of the script to migrate ~200k users. i won't be writing new features into the scripts but PRs are welcome. ๐Ÿ™‚
k
@User thanks for the repo, it helped me alot migrate myself.. how did you handle the password logins tho? did you had to send the users reset password manually?
j
@User fortunately for me, i didn't allow password logins. if i had, i would've implemented a UI to let the user send themselves a password reset email.
k
Yeah, that's what I thought as well, but thought maybe there is a way to decrypt passwords from firebase.
j
I'm no security expert, but I don't think you can decrypt hashed passwords
IIRC you can still retrieve the hashing algorithm and salt used for Firebase Auth
But I'm not sure if you can configure the hashing algorithm and salt on GoTrue
k
I don't think we can configure this in supabase. I'll try and see what I can do about it. Thanks alot
b
I'm not saying this is possible, but my theory is this:
If you can keep some code around to check their existing Firebase password against their existing Firebase hash, then at the time they log in, re-hash the password for Supabase / GoTrue and save the new version.
It's a bit of a longshot, but might work.
k
I was thinking of the same, I could ask them to login again and verify their entered password with the scrypt from firebase but then I need to expose these values somewhere. as of now, im going to the hard way, as soon new version is installed and i detect someone is logged in via password, then I show them a reset password screen .
b
Yeah, I was trying to accomplish a completely stealth version, so the user would never even know they were migrated.
k
count me in if you could make this work. i'll probably make the release on the weekend or the week after. let me know you figured something out ๐Ÿ™‚
b
It's definitely a back burner thing for me, but I'll let you know if I get anywhere.
k
Thank you :))
b
Inian says itโ€™s definitely possible, so thatโ€™s good. ๐Ÿ˜‹
k
possible without working solution is just a word in the air floating :p
haha
b
Nothing is impossible for me. Unless I donโ€™t feel like doing it.
k
that, for sure I agree with. buuuut, what can we do it to make u feel like it? ๐Ÿ˜„
b
Iโ€™ll look at it, donโ€™t worry. ๐Ÿ˜€
k
im not worried but rather hyped now.