(token: { token: string; expirationDate: Date }, error: FirebaseError)
| 73 | getToken() { |
| 74 | let result; |
| 75 | const callback = (token: { token: string; expirationDate: Date }, error: FirebaseError) => { |
| 76 | if (token) { |
| 77 | token = new (<any>org).nativescript.firebase.app_check.FirebaseAppCheck.AppCheckToken(token.token, token.expirationDate.getTime()); |
| 78 | } else { |
| 79 | result = (error as any).intoNative(); |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | ref.get?.().getToken(callback); |
| 84 | return result; |
no test coverage detected
searching dependent graphs…