python-youtube
python-youtube copied to clipboard
How to use the returned refresh token next time authentcate?
I am generating refresh_token but no method or attribute is present in Api class to use it to authenticate next time using the refresh_token. How to use refresh_token for authentication?
If you have refresh_token, you can use method refresh_access_token to get new access token.
But how to use it to authenticate. Means in Api class we can provide only access_token attribute no attribute for providing the refresh_token
I don't know your mean?
The refresh_token is to exchange the access token, If your current access token has invalid.
You can use the refresh_token to get new access token. Then you can use the new access token to get data
The confusing point is that when I call refresh_access_token() it only returns with new access_token without new refresh_token, but I guess it's because we can keep reusing the old refresh_token received from he initial token generation repeatedly
Yes, You are right, The refresh_token can be alaways use before it been invalid.