| 117 | } |
| 118 | |
| 119 | export class GithubProvider extends ProviderBase { |
| 120 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.GitHubBuilder; |
| 121 | constructor() { |
| 122 | super(); |
| 123 | this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.GitHubBuilder(); |
| 124 | } |
| 125 | |
| 126 | _scopes: string[] = []; |
| 127 | get scopes() { |
| 128 | return this._scopes; |
| 129 | } |
| 130 | |
| 131 | set scopes(values: string[]) { |
| 132 | if (Array.isArray(values)) { |
| 133 | this._scopes = values; |
| 134 | const scopes = new java.util.ArrayList<string>(); |
| 135 | this._scopes.forEach((scope) => { |
| 136 | scopes.add(scope); |
| 137 | }); |
| 138 | this._builder.setScopes(scopes); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | setCustomParameters(params: Record<string, string>) { |
| 143 | if (typeof params === 'object') { |
| 144 | const parameters = new java.util.HashMap<string, string>(); |
| 145 | Object.keys(params).forEach((key) => { |
| 146 | const value = params[key]; |
| 147 | parameters.put(key, value); |
| 148 | }); |
| 149 | this._builder.setCustomParameters(parameters); |
| 150 | } |
| 151 | return this; |
| 152 | } |
| 153 | |
| 154 | getNative(ui: IUI) { |
| 155 | return this._builder.build(); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | export class ActionCodeSettings implements IActionCodeSettings { |
| 160 | _native: com.google.firebase.auth.ActionCodeSettings.Builder; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…