Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specified refresh token requirement in com.atproto.server.deleteSession #330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Splix1
Copy link

@Splix1 Splix1 commented Feb 18, 2025

https://docs.bsky.app/docs/api/com-atproto-server-delete-session
unclear information about auth requirement, now specifies the requirement of 'refreshJwt'

@@ -40,7 +40,7 @@ import Heading from "@theme/Heading";

*To learn more about calling atproto API endpoints like this one, see the [API Hosts and Auth](/docs/advanced-guides/api-directory) guide.*

Delete the current session. Requires auth.
Delete the current session. Requires auth using the 'refreshJwt' token (not the 'accessJwt' token).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean the request would be

curl --request POST \
  --url https://bsky.social/xrpc/com.atproto.server.deleteSession \
  --header 'Authorization: Bearer <refresh_token>' \

??

If so, I got 200 OK response and then did GET https://bsky.social/xrpc/com.atproto.server.refreshSession with the refresh token and got

{
	"error": "ExpiredToken",
	"message": "Token has been revoked"
}

So it works, I confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants