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.
Refresh stored OAuth tokens for a connected account. When
refreshTokenis 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.