-
Notifications
You must be signed in to change notification settings - Fork 5
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
Usage on AWS Lambda with Oauth #37
Comments
It was a wrong environment variable on my side. It's working now. Also I was running the refresh token script and I got this message. Also because I am using serverless is the new accessToken save in any place, or is there an option to do that. Right now I think it will always use the refresh token. | Important: The uniquely generated tokens may become unavailable if they are not updated for 2~3 days. Does this mean that the refresh token can become expired? |
Normally, tokens that are generated independently should be refreshed every day or so due to their short expiration time. Although we have not experimented in detail, we have determined this because the value of |
If you are using serverless, the cache would be placed in the temp folder. If you need the ability to retrieve it, this will be added in v6.0.9. |
Yeah the idea, is to be able to get the new tokens, and save them in a bucket/db. On serverless, the values from the temp folder won't be persisted. Thank you for your work |
But it's still kinda painful that I have to redo the oauth sign in flow again when the refresh token expires. Are there any other solution that don't require manual handling of these. My use case is to just download a video when the transcript is not available and process it's audio with Whisper. |
In case you are wondering, OAuth2 tokens are automatically renewed when they expire (after the |
Describe the bug
I am trying to use this library on AWS Lambda, serverless. I've added the basic oauth configuration. It worked for an hour and now I am getting this error. "Failed to refresh access token" is this happening because of a wrong refresh token value ?. I just copied the one from the generate-own script.
Error Details (Log)
[ ERROR ]: Failed to refresh access token: 401
Environment
The text was updated successfully, but these errors were encountered: