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

This commit is contained in:
Narayan Bhat
2024-05-16 20:19:49 +05:30
committed by GitHub
parent 9ac5d70e2e
commit 0d45f854a2
3 changed files with 51 additions and 6 deletions

View File

@ -118,6 +118,8 @@ pub const POLL_ID_TTL: i64 = 900;
pub const DEFAULT_POLL_DELAY_IN_SECS: i8 = 2;
pub const DEFAULT_POLL_FREQUENCY: i8 = 5;
// Number of seconds to subtract from access token expiry
pub(crate) const REDUCE_ACCESS_TOKEN_EXPIRY_TIME: u8 = 15;
pub const CONNECTOR_CREDS_TOKEN_TTL: i64 = 900;
//max_amount allowed is 999999999 in minor units