mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
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:
1 parent
b9368b9a69
commit
b36671d8c6
1 file changed
-9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user