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

Method getIdTokenResult

packages/firebase-auth/index.ios.ts:240–264  ·  view source on GitHub ↗
(forceRefresh?: boolean)

Source from the content-addressed store, hash-verified

238 }
239
240 getIdTokenResult(forceRefresh?: boolean): Promise<IAuthTokenResult> {
241 return new Promise((resolve, reject) => {
242 if (!this.native) {
243 reject();
244 } else {
245 if (typeof forceRefresh === 'boolean') {
246 this.native.getIDTokenResultForcingRefreshCompletion(forceRefresh, (idToken, error) => {
247 if (error) {
248 reject(FirebaseError.fromNative(error));
249 } else {
250 resolve(AuthTokenResult.fromNative(idToken));
251 }
252 });
253 } else {
254 this.native.getIDTokenResultWithCompletion((idToken, error) => {
255 if (error) {
256 reject(FirebaseError.fromNative(error));
257 } else {
258 resolve(AuthTokenResult.fromNative(idToken));
259 }
260 });
261 }
262 }
263 });
264 }
265
266 linkWithCredential(credential: AuthCredential): Promise<IUserCredential> {
267 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected