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

Class MicrosoftProvider

packages/firebase-ui/index.android.ts:332–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332export class MicrosoftProvider extends ProviderBase {
333 _builder: com.firebase.ui.auth.AuthUI.IdpConfig.MicrosoftBuilder;
334 constructor() {
335 super();
336 this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.MicrosoftBuilder();
337 }
338
339 _scopes: string[] = [];
340 get scopes() {
341 return this._scopes;
342 }
343
344 set scopes(values: string[]) {
345 if (Array.isArray(values)) {
346 this._scopes = values;
347 const scopes = new java.util.ArrayList<string>();
348 this._scopes.forEach((scope) => {
349 scopes.add(scope);
350 });
351 this._builder.setScopes(scopes);
352 }
353 }
354
355 setCustomParameters(params: Record<string, string>) {
356 if (typeof params === 'object') {
357 const parameters = new java.util.HashMap<string, string>();
358 Object.keys(params).forEach((key) => {
359 const value = params[key];
360 parameters.put(key, value);
361 });
362 this._builder.setCustomParameters(parameters);
363 }
364 return this;
365 }
366
367 getNative(ui: IUI) {
368 return this._builder.build();
369 }
370}
371
372export class YahooProvider extends ProviderBase {
373 _builder: com.firebase.ui.auth.AuthUI.IdpConfig.YahooBuilder;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…