MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / setTokenRefreshError

Function setTokenRefreshError

packages/backend/src/ee/tokenRefresh.ts:147–152  ·  view source on GitHub ↗
(accountId: string, message: string, db: PrismaClient)

Source from the content-addressed store, hash-verified

145};
146
147const setTokenRefreshError = async (accountId: string, message: string, db: PrismaClient) => {
148 await db.account.update({
149 where: { id: accountId },
150 data: { tokenRefreshErrorMessage: message },
151 });
152};
153
154const refreshOAuthToken = async (
155 providerId: string,

Callers 1

ensureFreshAccountTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected