(forceRefresh: boolean)
| 75 | this.native.isTokenAutoRefreshEnabled = isTokenAutoRefreshEnabled; |
| 76 | } |
| 77 | getToken(forceRefresh: boolean): Promise<AppCheckToken> { |
| 78 | return new Promise((resolve, reject) => { |
| 79 | this.native.tokenForcingRefreshCompletion(forceRefresh, (token, error) => { |
| 80 | if (error) { |
| 81 | const err = FirebaseError.fromNative(error); |
| 82 | reject(err); |
| 83 | } else { |
| 84 | resolve(AppCheckToken.fromNative(token)); |
| 85 | } |
| 86 | }); |
| 87 | }); |
| 88 | } |
| 89 | setTokenAutoRefreshEnabled(enabled: boolean) { |
| 90 | this.native.isTokenAutoRefreshEnabled = enabled; |
| 91 | } |
nothing calls this directly
no test coverage detected