MCPcopy Index your code
hub / github.com/NativeScript/firebase / GithubProvider

Class GithubProvider

packages/firebase-ui/index.android.ts:119–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119export 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
159export class ActionCodeSettings implements IActionCodeSettings {
160 _native: com.google.firebase.auth.ActionCodeSettings.Builder;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…