You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply checking typeof should allow us to determine if nextOrObserver is next or observer observer seem to be expecting you to call nest() on them with the user.
In this section
mockbase/auth/auth.ts
Lines 67 to 78 in 61b9467
When used with
as done in
https://github.com/angular/angularfire/blob/2de8501d10add9e575885db9f44b8098e5857929/src/auth/auth.ts#L66
throws the following error.
It should be noted that
nextOrObserver
is aSwitchMapSubscriber
when this error occurs.Reference:
https://github.com/ReactiveX/rxjs/blob/b8c2a52bf78e855dfe48e3620b7ee2fee05ec120/src/internal/operators/switchMap.ts#L109
Simply checking
typeof
should allow us to determine ifnextOrObserver
isnext
orobserver
observer
seem to be expecting you to callnest()
on them with the user.Here is the firebase implementation of this function for additional reference
https://github.com/firebase/firebase-js-sdk/blob/35bc0a2eea98d9796023f15cd5783700d45ccc4d/packages/auth/src/auth.js#L1442-L1472
The text was updated successfully, but these errors were encountered: