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

Use RefreshJwt when calling ServerRefreshSession. #755

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

Conversation

avalonbits
Copy link
Contributor

*xrpc.Client.Do only looks at Auth.AccessJwt when adding the jwt token, so I changed ServerRefreshSession to copy the RefreshJwt token to it before calling Do.

Alternatively, we can change Do to use RefreshJwt if the method is "com.atproto.server.refreshSession". I'm fine either way, though adding more custom logic to Do makes it less and less a generic Do.

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.

1 participant