mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 13:16:51 +00:00
Merge remote-tracking branch 'origin/codex/mika-integrations-hardening' into codex/mika-skills-hardening
This commit is contained in:
commit
3937b306f9
4 changed files with 8 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ export function getProviderEnv(slug: ProviderSlug, redirectUri: string): Provide
|
|||
return { clientId, clientSecret, redirectUri };
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Monta a URL de autorização para iniciar o fluxo OAuth.
|
||||
*/
|
||||
|
|
@ -442,6 +443,7 @@ export async function revokeToken(
|
|||
// Todoist precisa client_id/secret + access_token no body
|
||||
const clientId = readFirstEnv(["TODOIST_CLIENT_ID", "TODOIST_OAUTH_CLIENT_ID"]);
|
||||
const clientSecret = readFirstEnv(["TODOIST_CLIENT_SECRET", "TODOIST_OAUTH_CLIENT_SECRET"]);
|
||||
|
||||
const body = new URLSearchParams({
|
||||
client_id: clientId,
|
||||
client_secret: clientSecret,
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ Deno.serve(async (req) => {
|
|||
if (!pErr) pausedCount = jobsToPause.length;
|
||||
}
|
||||
|
||||
|
||||
// 2. Busca tokens ANTES de qualquer delete
|
||||
const accessToken = integ.access_token_vault_id
|
||||
? await getDecryptedSecret(admin, integ.access_token_vault_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue