Skip to main content
All CollectionsManaging Connectors
Maintaining Authorization Via OAuth 2.0
Maintaining Authorization Via OAuth 2.0
Trent Johnson avatar
Written by Trent Johnson
Updated over a week ago

OAuth 2.0 is an authorization framework that allows third-party applications to access resources on behalf of a user without sharing the user's credentials. OAuth provides access tokens to third-party applications to access the user's resources. These access tokens have a limited lifetime and expire after a certain period.

To allow long-term access to the user's resources, OAuth uses a mechanism called "refresh tokens". The refresh token is a long-lived token that can be used to obtain a new access token when the current access token expires. An application can use a refresh token without the need to authenticate again. This process is known as token refresh or token renewal.

While refresh tokens are designed to provide long-term access to user resources, they may become unusable for various reasons. For example, if a user revokes access to a third-party application or if the user's account is deleted, the refresh token will become invalid. Additionally, if the authorization server has a policy of revoking refresh tokens after a certain period of inactivity, the refresh token may also become unusable.

Bytespree uses OAuth 2.0 to access several APIs. If you notice that your syncs are suddenly failing in Bytespree, and there is a button under Database Settings to reauthorize access, any of the above options could be a factor. If you suspect authorization has been revoked or has expired, use the button in Database Settings to reauthorize Bytespree, obtain a new refresh token, and restore connectivity.

Did this answer your question?