Document (non-oauth) authentication API error signalling? #3319
DavidBuchanan314
started this conversation in
Protocol (atproto)
Replies: 1 comment
-
I'm going to have to emulate this API response format in millipds, if I want bsky.app to do session refresh properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on reading the client api source, it seems like expired tokens are expected to be rejected with an HTTP 400 response, containing "ExpiredToken" in the body. I don't think this is currently documented anywhere.
atproto/packages/api/src/atp-agent.ts
Lines 225 to 229 in f70d159
Edit: I think the expected response needs to look like this, specifically:
Beta Was this translation helpful? Give feedback.
All reactions