hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

refactor(access_token): handle network delays with expiry of access token

Open Narayanbhat166 opened this issue 1 year ago • 0 comments

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. Screenshot 2024-05-10 at 12 24 52 AM

  • The below log can also be checked Screenshot 2024-05-10 at 12 25 58 AM

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed the submitted code

Narayanbhat166 avatar May 09 '24 18:05 Narayanbhat166