| 370 | } |
| 371 | |
| 372 | export class YahooProvider extends ProviderBase { |
| 373 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.YahooBuilder; |
| 374 | constructor() { |
| 375 | super(); |
| 376 | this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.YahooBuilder(); |
| 377 | } |
| 378 | |
| 379 | _scopes: string[] = []; |
| 380 | get scopes() { |
| 381 | return this._scopes; |
| 382 | } |
| 383 | |
| 384 | set scopes(values: string[]) { |
| 385 | if (Array.isArray(values)) { |
| 386 | this._scopes = values; |
| 387 | const scopes = new java.util.ArrayList<string>(); |
| 388 | this._scopes.forEach((scope) => { |
| 389 | scopes.add(scope); |
| 390 | }); |
| 391 | this._builder.setScopes(scopes); |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | setCustomParameters(params: Record<string, string>) { |
| 396 | if (typeof params === 'object') { |
| 397 | const parameters = new java.util.HashMap<string, string>(); |
| 398 | Object.keys(params).forEach((key) => { |
| 399 | const value = params[key]; |
| 400 | parameters.put(key, value); |
| 401 | }); |
| 402 | this._builder.setCustomParameters(parameters); |
| 403 | } |
| 404 | return this; |
| 405 | } |
| 406 | |
| 407 | getNative(ui: IUI) { |
| 408 | return this._builder.build(); |
| 409 | } |
| 410 | } |
| 411 | |
| 412 | export class AppleProvider extends ProviderBase { |
| 413 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.AppleBuilder; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…