The documentation says that I can mock signing in different users. While it works when using the GoogleAuthProvider, it doesn't work when using the OAuthProvider, even though the documentation states
You can replace firebase.auth.GoogleAuthProvider with, for example, new firebase.auth.OAuthProvider('yahoo.com') or any other provider ID you want to mock.
To Reproduce
var provider = new OAuthProvider("google.com");
var credential = provider.credential("{\"sub\": \"abc123\", \"email\": \"foo@example.com\", \"email_verified\": true}");
You will get the following error FirebaseError: Firebase: Error (auth/argument-error).
Expected behavior
It should work as described in the docs..
Desktop (please complete the following information):
Describe the bug
The documentation says that I can mock signing in different users. While it works when using the
GoogleAuthProvider
, it doesn't work when using theOAuthProvider
, even though the documentation statesTo Reproduce
You will get the following error
FirebaseError: Firebase: Error (auth/argument-error).
Expected behavior
It should work as described in the docs..
Desktop (please complete the following information):