| 410 | } |
| 411 | |
| 412 | export class AppleProvider extends ProviderBase { |
| 413 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.AppleBuilder; |
| 414 | constructor() { |
| 415 | super(); |
| 416 | this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.AppleBuilder(); |
| 417 | } |
| 418 | |
| 419 | _scopes: string[] = []; |
| 420 | get scopes() { |
| 421 | return this._scopes; |
| 422 | } |
| 423 | |
| 424 | set scopes(values: string[]) { |
| 425 | if (Array.isArray(values)) { |
| 426 | this._scopes = values; |
| 427 | const scopes = new java.util.ArrayList<string>(); |
| 428 | this._scopes.forEach((scope) => { |
| 429 | scopes.add(scope); |
| 430 | }); |
| 431 | this._builder.setScopes(scopes); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | setCustomParameters(params: Record<string, string>) { |
| 436 | if (typeof params === 'object') { |
| 437 | const parameters = new java.util.HashMap<string, string>(); |
| 438 | Object.keys(params).forEach((key) => { |
| 439 | const value = params[key]; |
| 440 | parameters.put(key, value); |
| 441 | }); |
| 442 | this._builder.setCustomParameters(parameters); |
| 443 | } |
| 444 | return this; |
| 445 | } |
| 446 | |
| 447 | getNative(ui: IUI) { |
| 448 | return this._builder.build(); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | export class User { |
| 453 | _native: com.firebase.ui.auth.data.model.User; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…