Skip to content
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

on_token_refreshed never trigger #104

Open
fabiancarlos opened this issue Apr 15, 2024 · 1 comment
Open

on_token_refreshed never trigger #104

fabiancarlos opened this issue Apr 15, 2024 · 1 comment

Comments

@fabiancarlos
Copy link

I was testing using byebug on the block lambda, and try to save direct in database... but just not triggering

@guycall
Copy link

guycall commented Jul 7, 2024

@fabiancarlos I get the same issue. If you inspect the access_token it thinks it is not expired:

access_token = OAuth2::AccessToken.from_hash(authenticator, token_hash)
puts "Access token expired? #{access_token.expired?}"

If you inspect the token returned from dropbox, it only has a "expires_in" field and no "expires_at". It appears OAuth2::AccessToken.from_hash generates "expires_at" if it is missing (i.e. now + expires_in)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants