If you're using offline mode and want to retrieve/save the acces_tokens and refresh_tokens for the first time you will get an invalid_code error when you call both getAccessToken() and getRefreshToken().
This is because both functions will try to fetch the tokens by using the underlying generateTokensFromGrantToken() method if you call getAccessToken() first and getRefreshToken() second, as said in de readme. A solution is to use getRefreshToken() first, so in the getAccessToken() method the refresh_token is used.
Not sure if you want to change the underlying code or just update the readme.
If you're using offline mode and want to retrieve/save the acces_tokens and refresh_tokens for the first time you will get an invalid_code error when you call both
getAccessToken()
andgetRefreshToken()
.This is because both functions will try to fetch the tokens by using the underlying
generateTokensFromGrantToken()
method if you callgetAccessToken()
first andgetRefreshToken()
second, as said in de readme. A solution is to usegetRefreshToken()
first, so in thegetAccessToken()
method the refresh_token is used.Not sure if you want to change the underlying code or just update the readme.