()
| 89 | } |
| 90 | |
| 91 | export async function refreshAuth(): Promise<Tokens> { |
| 92 | if (!lastOptions) { |
| 93 | throw new FirebaseError("Unable to refresh auth: not yet authenticated."); |
| 94 | } |
| 95 | await requireAuth(lastOptions); |
| 96 | return lastOptions.tokens as Tokens; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Ensures that the user can make authenticated calls. Returns the email if the user is logged in, |
no test coverage detected
searching dependent graphs…