(authResolver: () => Promise<Auth>)
| 9 | type Claims = IdTokenResult['claims']; |
| 10 | |
| 11 | export async function preloadUser(authResolver: () => Promise<Auth>) { |
| 12 | const auth = await authResolver(); |
| 13 | const user$ = preloadObservable(user(auth), `auth:user:${auth.name}`); |
| 14 | return user$.toPromise(); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Subscribe to Firebase auth state changes, including token refresh |
nothing calls this directly
no test coverage detected