MCPcopy Create free account
hub / github.com/xerrors/Yuxi / getUserAccessOptions

Function getUserAccessOptions

web/src/apis/auth_api.js:62–64  ·  view source on GitHub ↗

* 使用一次性 code 交换 OIDC 登录结果 * @param {string} code - 一次性登录 code * @returns {Promise<{ * access_token: string, * token_type: string, * user_id: number, * username: string, * uid: string, * phone_number: string | null, * avatar: string | null, * role: string, * department_id

()

Source from the content-addressed store, hash-verified

60 * }>}
61 */
62async function getUserAccessOptions() {
63 return apiAdminGet('/api/auth/users/access-options')
64}
65
66async function exchangeOIDCCode(code) {
67 const response = await fetch('/api/auth/oidc/exchange-code', {

Callers

nothing calls this directly

Calls 1

apiAdminGetFunction · 0.90

Tested by

no test coverage detected