OAuth2::AccessToken#refresh! "NoMethodError: undefined method `options=' for nil:NilClass"
Created by: kharamel
I modified refresh token to be invalid and refresh!
is throwing this (NoMethodError: undefined method options=' for nil:NilClass
) error. Is it possible to throw a more semantic error similar to raise('refresh_token is not valid')
? This way we can catch the error on our end and handle it accordingly.
Notes:
- access token is expired.
- refresh token is not expired.
- refresh token is invalid.