refresh expired access tokens instead of deleting sessions
AT Protocol OAuth access tokens expire after ~5 minutes. When the PDS
returns 401, refresh the token using the refresh token and retry the
request. Only delete the session if refresh also fails.
Also keeps the exchange token pattern from the previous commit for
more reliable cookie setting.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>