Closed vgagara-talend closed 3 months ago
@vgagara-talend An OAuth2Authorization
is in an invalid state when a OAuth2RefreshToken
exists but a OAuth2AccessToken
does not exist. An OAuth2AccessToken
should always exist even if it's expired.
The custom implementation of:
if implemented, access token is cleaned up when expired
should be fixed to remove the OAuth2Authorization
when all tokens are no longer valid.
I'm going to close this based on the explanation provided.
Describe the bug NPE happened at this line if access token is not available (e.g. it was expired and cleaned up) but refresh token is present.
To Reproduce
Expected behavior No NPE in the logs