fix(core): undefined providerId (#12947)
* Fix undefined providerId
Client-side auth with no `providerId` param results in error.
* dev: Add test for 'undefined' provider url-parsing.test.ts
* simplify tests
* formatting
---------
Co-authored-by: Thang Vu <hi@thvu.dev>