-
Notifications
You must be signed in to change notification settings - Fork 597
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
Can sessions persist, or do they need to be constantly refreshed? #1057
Comments
I assume you're not using the default No, access token expiration time is handled server side and by default it's set to 120 minutes, same goes for the refresh token but it's set for 90 days. Ideally you shouldn't call
But if you're just testing that shouldn't be a problem |
So the way to handle this would be to attempt to call I guess |
Quick side question: is there any documentation of the quota? And might it return 403 errors if the quota is exceeded? (I saw some 403 errors that stopped happening after a few minutes). (And sorry, probably wrong place to ask). |
@GreenFootballs Yep, that's how |
@thepudds That's all I know #697 (reply in thread) |
Thanks. (BTW I really appreciate the quick responses to questions.) |
Yup @Matrix89 nailed it When we get around to doing an auth revamp, we'll add in something for longstanding tokens, for something like bots. But access tokens are stateless and therefore must have a short expiration time. I believe we do return 403 when being rate-limited. Did you receive something else? (closing for now, but feel free to continue chatting) |
I've noticed that sessions created with
atproto.server.createSession
only last for a short time, and then need to be refreshed with the refreshJwt token andatproto.server.refreshSession
.Is there a way to make a session persist longer, or indefinitely? If not, would there be any problem with always calling
atproto.server.refreshSession
and saving the new tokens before any other operation?The text was updated successfully, but these errors were encountered: