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

Method provider

packages/firebase-auth/index.android.ts:730–742  ·  view source on GitHub ↗
(auth?: Auth)

Source from the content-addressed store, hash-verified

728 }
729
730 static provider(auth?: Auth) {
731 const provider = new PhoneAuthProvider();
732 const timeout = java.lang.Long.valueOf(60);
733 if (auth) {
734 provider._native = com.google.firebase.auth.PhoneAuthOptions.newBuilder(auth.native).setTimeout(timeout as any, java.util.concurrent.TimeUnit.SECONDS);
735 } else {
736 provider._native = com.google.firebase.auth.PhoneAuthOptions.newBuilder().setTimeout(timeout, java.util.concurrent.TimeUnit.SECONDS);
737 }
738
739 provider._native.setActivity(Application.android.foregroundActivity || Application.android.startActivity);
740
741 return provider;
742 }
743
744 credential(verificationId: string, verificationCode: string) {
745 return AuthCredential.fromNative(com.google.firebase.auth.PhoneAuthProvider.getCredential(verificationId, verificationCode));

Callers

nothing calls this directly

Calls 1

valueOfMethod · 0.65

Tested by

no test coverage detected