MCPcopy Create free account
hub / github.com/NativeScript/firebase / getToken

Function getToken

packages/firebase-app-check/index.android.ts:73–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 const ref = new WeakRef(this);
72 this._callback = new (<any>org).nativescript.firebase.app_check.FirebaseAppCheck.CustomAppCheckProvider.Callback({
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;
85 },
86 });
87 this._native = (<any>org).nativescript.firebase.app_check.FirebaseAppCheck.CustomAppCheckProvider(this._callback);
88 }

Callers

nothing calls this directly

Calls 2

getTokenMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…