hyperswitch
hyperswitch copied to clipboard
refactor(access_token): handle network delays with expiry of access token
Type of Change
- [x] Refactoring
Description
There might be some delay in network due to which the access token which was not expired locally, might have expired when it reaches the connector. This PR reduces the expiry of access token in order to account for such delays
Motivation and Context
How did you test it?
-
Create a payment with any connector which supports access token and then check the ttl in redis.
-
The below log can also be checked
Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed the submitted code