| 330 | } |
| 331 | |
| 332 | export 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 | |
| 372 | export class YahooProvider extends ProviderBase { |
| 373 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.YahooBuilder; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…