Ethan Veres
06/27/2023, 6:40 PMSingleUseRefreshTokenOauth2Authenticator and I’m running into an issue where the access token expires within the same sync. Not entirely sure what’s going on!kapa.ai
06/27/2023, 6:40 PMkapa.ai
06/27/2023, 6:40 PMSingleUseRefreshTokenOauth2Authenticator should handle this for you, but it's possible that there might be an issue with your implementation or the API you're connecting to. Here are a few things you can check: 1. Ensure that your connector is correctly using the SingleUseRefreshTokenOauth2Authenticator. This should automatically handle the refreshing of the access token. 2. Check the lifespan of your access token. If it's very short and your sync operations are long, you might need to find a way to extend the lifespan of the token or make your sync operations faster. 3. Check the logs for any errors or issues related to the token refresh process. This might give you more insight into what's going wrong. 4. If the API you're connecting to uses a refresh token that also expires, you might need to implement a custom solution to handle this. One user in a [forum discussion](https://discuss.airbyte.io/t/3275) mentioned a similar issue and ended up using a SingleUseRefreshTokenOauth2Authenticator. If you're still having issues, it might be helpful to provide more details about your implementation and the API you're connecting to. This could help identify any specific issues that might be causing your problem.Sherif Nada
06/27/2023, 11:07 PMEthan Veres
06/27/2023, 11:09 PMSherif Nada
06/27/2023, 11:10 PMEthan Veres
06/27/2023, 11:11 PMjwt expired from my custom sdk api connectorEthan Veres
06/27/2023, 11:11 PMshould_retry but that won’t recreate the authorization header (which would refresh the token)Ethan Veres
06/27/2023, 11:14 PM0.50.1 and Airbyte-sdk 0.40.5Ethan Veres
06/27/2023, 11:17 PMJoe Reuter (Airbyte)
06/28/2023, 7:27 AMJoe Reuter (Airbyte)
06/28/2023, 7:28 AMJoe Reuter (Airbyte)
06/28/2023, 7:29 AMEthan Veres
06/28/2023, 11:37 AMexpired_in as an int in seconds. What else would I need to doJoe Reuter (Airbyte)
06/28/2023, 11:57 AMexpires_in : https://github.com/airbytehq/airbyte/blob/ec9707c71ff59b595a373c5b12b82174602cd03b[…]/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.pyJoe Reuter (Airbyte)
06/28/2023, 11:57 AMexpired_in in your case, you will need to adjust itJoe Reuter (Airbyte)
06/28/2023, 11:58 AMEthan Veres
06/28/2023, 2:59 PMexpires_inEthan Veres
06/28/2023, 7:16 PM