From b36671d8c6c0c86ee976ddc32663b2a586806800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 22 Jun 2026 08:43:14 +0200 Subject: [PATCH] refactor(integrations): drop the unused RotatedTokens type persistRotatedToken takes the fresh access token directly; the interface was never wired in. Removing it clears the dead-code gate. --- src/lib/integrations/oauth-refresh.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/integrations/oauth-refresh.ts b/src/lib/integrations/oauth-refresh.ts index 2298724d8..87276e76f 100644 --- a/src/lib/integrations/oauth-refresh.ts +++ b/src/lib/integrations/oauth-refresh.ts @@ -24,15 +24,6 @@ * single spurious reauth forces the user back through the consent flow. */ -/** Tokens returned by a provider's refresh endpoint (the fields we persist). */ -export interface RotatedTokens { - accessToken: string; - /** The new refresh token. Omitted only on a malformed reply (kept as-is). */ - refreshToken?: string | null; - /** Absolute expiry of the new access token, if the provider supplies one. */ - expiresAt?: Date; -} - export interface PersistRotatedTokenOptions { /** * Conditional persist: update the connection row ONLY when its stored refresh