Files
warmbly/web/src/lib/api/client/app/integrations/reauthIntegration.ts
T
Matthew Meszaros 4500aeba0f feat: add integration oauth connections
Adds OAuth-backed integration connection management across the API, repository, event dispatch, migrations, docs, and dashboard UI.

Includes realtime invalidation and small dashboard type compatibility fixes needed for the web typecheck gate.
2026-06-01 04:25:14 +02:00

14 lines
561 B
TypeScript

import type { IntegrationOAuthStartResponse } from "@/lib/api/models/app/integrations/Integration";
import Request from "../../Request";
// Starts a fresh OAuth handshake for an existing connection whose token
// expired or was revoked. Returns a new authorization URL.
export default async function reauthIntegration(id: string): Promise<IntegrationOAuthStartResponse> {
return await Request<IntegrationOAuthStartResponse>({
method: "POST",
url: `/integrations/oauth/reauth/${id}`,
data: {},
authorization: true,
});
}