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.
This commit is contained in:
Marc-André Bombeck committed 2026-06-22 08:43:14 +02:00
1 parent b9368b9a69
commit b36671d8c6
1 file changed
-9
-9
View File
@@ -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