https://supabase.com/ logo
#showcase
Title
# showcase
j

jianjie

08/01/2021, 9:45 AM
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

Kosh

08/01/2021, 1:39 PM
@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

jianjie

08/02/2021, 2:10 AM
@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

Kosh

08/02/2021, 7:08 AM
Yeah, that's what I thought as well, but thought maybe there is a way to decrypt passwords from firebase.
j

jianjie

08/02/2021, 8:09 AM
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

Kosh

08/02/2021, 10:02 AM
I don't think we can configure this in supabase. I'll try and see what I can do about it. Thanks alot
b

burggraf

08/02/2021, 2:10 PM
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

Kosh

08/02/2021, 2:14 PM
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

burggraf

08/02/2021, 2:17 PM
Yeah, I was trying to accomplish a completely stealth version, so the user would never even know they were migrated.
k

Kosh

08/02/2021, 2:38 PM
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

burggraf

08/02/2021, 3:05 PM
It's definitely a back burner thing for me, but I'll let you know if I get anywhere.
k

Kosh

08/02/2021, 3:11 PM
Thank you :))
b

burggraf

08/02/2021, 4:27 PM
Inian says it’s definitely possible, so that’s good. 😋
k

Kosh

08/02/2021, 4:28 PM
possible without working solution is just a word in the air floating :p
haha
b

burggraf

08/02/2021, 4:29 PM
Nothing is impossible for me. Unless I don’t feel like doing it.
k

Kosh

08/02/2021, 4:30 PM
that, for sure I agree with. buuuut, what can we do it to make u feel like it? 😄
b

burggraf

08/02/2021, 4:31 PM
I’ll look at it, don’t worry. 😀
k

Kosh

08/02/2021, 4:32 PM
im not worried but rather hyped now.