MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / submitGitHubOAuth

Function submitGitHubOAuth

web/src/components/settings/SystemSetting.js:316–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314 };
315
316 const submitGitHubOAuth = async () => {
317 const options = [];
318
319 if (originInputs['GitHubClientId'] !== inputs.GitHubClientId) {
320 options.push({ key: 'GitHubClientId', value: inputs.GitHubClientId });
321 }
322 if (
323 originInputs['GitHubClientSecret'] !== inputs.GitHubClientSecret &&
324 inputs.GitHubClientSecret !== ''
325 ) {
326 options.push({
327 key: 'GitHubClientSecret',
328 value: inputs.GitHubClientSecret,
329 });
330 }
331
332 if (options.length > 0) {
333 await updateOptions(options);
334 }
335 };
336
337 const submitOIDCSettings = async () => {
338 if (inputs['oidc.well_known'] && inputs['oidc.well_known'] !== '') {

Callers

nothing calls this directly

Calls 1

updateOptionsFunction · 0.85

Tested by

no test coverage detected