MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / checkTokenAlive

Function checkTokenAlive

background.js:2097–2110  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

2095 ));
2096 },
2097 async checkTokenAlive(token) {
2098 const data = await request(
2099 'GET',
2100 `/api/v1/openapi/email/token/${encodeURIComponent(token)}/alive`
2101 );
2102 return {
2103 email_address: String(data?.email_address || ''),
2104 project: String(data?.project || ''),
2105 alive: Boolean(data?.alive),
2106 status: String(data?.status || ''),
2107 message: String(data?.message || ''),
2108 mail_count: Number(data?.mail_count) || 0,
2109 };
2110 },
2111 async getTokenMails(token) {
2112 const data = await request('GET', `/api/v1/openapi/email/token/${encodeURIComponent(token)}/mails`);
2113 return {

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected