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

Function generateAccessToken

web/src/components/settings/PersonalSetting.js:165–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 };
164
165 const generateAccessToken = async () => {
166 const res = await API.get('/api/user/token');
167 const { success, message, data } = res.data;
168 if (success) {
169 setSystemToken(data);
170 await copy(data);
171 showSuccess(t('令牌已重置并已复制到剪贴板'));
172 } else {
173 showError(message);
174 }
175 };
176
177 const getUserData = async () => {
178 let res = await API.get(`/api/user/self`);

Callers

nothing calls this directly

Calls 4

copyFunction · 0.90
showSuccessFunction · 0.90
showErrorFunction · 0.90
tFunction · 0.70

Tested by

no test coverage detected