Returns tokens suitable for platform API calls. Persists a new YouTube access token when the stored one is expired or near expiry.
Connected account row including encrypted tokens.
Optional
Refresh behavior overrides.
When true, refreshes OAuth access tokens even if the stored expiry is still valid.
Clear Error when YouTube refresh fails (e.g. the user revoked access).
Returns tokens suitable for platform API calls. Persists a new YouTube access token when the stored one is expired or near expiry.