Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 426b58f

Browse files
Added iOSEmulatorFlush to d.ts
1 parent 047bc3b commit 426b58f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

firebase.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ declare module "nativescript-plugin-firebase" {
1212
/**
1313
* Get notified when fi the user is logged in.
1414
*/
15-
onAuthStateChange?: AuthStateChangeListener
15+
onAuthStateChange?: AuthStateChangeListener;
16+
/**
17+
* Attempt to sign out before initializing, useful in case previous
18+
* project token is cached which leads to following type of error:
19+
* "[FirebaseDatabase] Authentication failed: invalid_token ..."
20+
*/
21+
iOSEmulatorFlush?: boolean;
1622
}
1723

1824
/**

0 commit comments

Comments
 (0)