MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / bootstrapSessionToken

Function bootstrapSessionToken

static/js/accounts.js:1639–1653  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1637}
1638
1639async function bootstrapSessionToken(id) {
1640 try {
1641 const result = await api.post(`/payment/accounts/${id}/session-bootstrap`, {});
1642 if (result && result.success) {
1643 toast.success('Session Token 补全成功');
1644 } else {
1645 toast.warning(result?.message || '未补全到 Session Token');
1646 }
1647 } catch (error) {
1648 toast.error('补全 Session Token 失败: ' + error.message);
1649 } finally {
1650 await viewAccount(id);
1651 loadAccounts();
1652 }
1653}
1654
1655async function editSessionToken(id, currentToken = '') {
1656 const current = String(currentToken || '');

Callers

nothing calls this directly

Calls 6

viewAccountFunction · 0.85
successMethod · 0.80
warningMethod · 0.80
errorMethod · 0.80
loadAccountsFunction · 0.70
postMethod · 0.45

Tested by

no test coverage detected