MCPcopy Index your code
hub / github.com/NativeScript/firebase / getIdTokenResult

Method getIdTokenResult

packages/firebase-auth/index.android.ts:252–271  ·  view source on GitHub ↗
(forceRefresh: boolean = false)

Source from the content-addressed store, hash-verified

250 }
251
252 getIdTokenResult(forceRefresh: boolean = false): Promise<AuthTokenResult> {
253 return new Promise((resolve, reject) => {
254 if (!this.native) {
255 reject();
256 } else {
257 NSFirebaseAuth().User.getIdTokenResult(
258 this.native,
259 forceRefresh,
260 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
261 onSuccess(success) {
262 resolve(AuthTokenResult.fromNative(success));
263 },
264 onError(error) {
265 reject(FirebaseError.fromNative(error));
266 },
267 })
268 );
269 }
270 });
271 }
272
273 linkWithCredential(credential: AuthCredential): Promise<IUserCredential> {
274 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

getIdTokenResultMethod · 0.65

Tested by

no test coverage detected