The import script (scripts/import-supabase-auth.ts) is completely broken because when it tries to validate the auth export it checks the JSON string not the parsed JSON.
Also there are instances where the user does not have any provider info (eg. when signed up by email).
Solution
Pass the correct variable to the validator.
Check if provider info exists before using the data inside of it.
Other changes
Dumped the error to the console because it is super helpful for the dev.
Testing
[x] works for my Firebase -> Supabase app with users signed up with email and Google
Issue
The import script (
scripts/import-supabase-auth.ts
) is completely broken because when it tries to validate the auth export it checks the JSON string not the parsed JSON.Also there are instances where the user does not have any provider info (eg. when signed up by email).
Solution
Pass the correct variable to the validator.
Check if provider info exists before using the data inside of it.
Other changes
Dumped the error to the console because it is super helpful for the dev.
Testing