videosphere
    Preparing search index...
    • Refresh stored OAuth tokens for a connected account. When refreshToken is empty, the existing stored refresh token is left unchanged so a missing/empty provider value cannot wipe a still-valid grant. Returns public shape (no tokens) so callers never receive secrets.

      Parameters

      • id: string

        Connected account row id.

      • accessToken: string

        New access token plaintext.

      • refreshToken: string

        New refresh token plaintext, or empty to preserve the stored one.

      • tokenExpiry: string

        ISO expiry for the new access token.

      Returns Promise<ConnectedAccountPublic>

      Updated public account row, or null when the row no longer exists.