| 837 | } |
| 838 | |
| 839 | setScopes(scopes: string[]) { |
| 840 | if (!this._builder) { |
| 841 | this._builder = com.google.firebase.auth.OAuthProvider.newBuilder(this._providerId); |
| 842 | this._customProvider = true; |
| 843 | } |
| 844 | if (Array.isArray(scopes)) { |
| 845 | const array = new java.util.ArrayList<string>(); |
| 846 | scopes.forEach((item) => { |
| 847 | array.add(item); |
| 848 | }); |
| 849 | this._builder.setScopes(array); |
| 850 | } |
| 851 | } |
| 852 | |
| 853 | credential(optionsOrIdToken: OAuthCredentialOptions | string | null, accessToken?: string) { |
| 854 | const builder = com.google.firebase.auth.OAuthProvider.newCredentialBuilder(this._providerId); |