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

Method setScopes

packages/firebase-auth/index.android.ts:839–851  ·  view source on GitHub ↗
(scopes: string[])

Source from the content-addressed store, hash-verified

837 }
838
839 setScopes(scopes: string[]) {
840 if (!this._builder) {
841 this._builder = com.google.firebase.auth.OAuthProvider.newBuilder(this._providerId);
842 this._customProvider = true;
843 }
844 if (Array.isArray(scopes)) {
845 const array = new java.util.ArrayList<string>();
846 scopes.forEach((item) => {
847 array.add(item);
848 });
849 this._builder.setScopes(array);
850 }
851 }
852
853 credential(optionsOrIdToken: OAuthCredentialOptions | string | null, accessToken?: string) {
854 const builder = com.google.firebase.auth.OAuthProvider.newCredentialBuilder(this._providerId);

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.65
addMethod · 0.65
setScopesMethod · 0.65

Tested by

no test coverage detected