[@atproto/api] resumeSession
while already logged in sends request to currently logged in user's PDS, rather than bsky.social
#1964
Labels
bug
Something isn't working
Describe the bug
For the account switch mechanism, I want to reuse the same agent, so I have been calling
resumeSession
on an already authenticated agent. However, post-federation, theservice
gets switched out to the currently logged in user's PDS after authentication, so futher authentication requests fail if you're not on the same PDS (shroommates?). I think it would make sense that when making authencation-related requests, it should use the originally passedservice
URL.To Reproduce
Steps to reproduce the behavior:
resumeSession
with an account on a different PDSRequest is sent to the PDS of the original account, you should get
Token could not be verified
Expected behavior
Request is sent to
bsky.social
or whatever it's been set to.The text was updated successfully, but these errors were encountered: