mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(access_token): use merchant_connector_id for storing access token (#4462)
This commit is contained in:
11
crates/common_utils/src/access_token.rs
Normal file
11
crates/common_utils/src/access_token.rs
Normal file
@ -0,0 +1,11 @@
|
||||
//! Commonly used utilities for access token
|
||||
|
||||
use std::fmt::Display;
|
||||
|
||||
/// Create a key for fetching the access token from redis
|
||||
pub fn create_access_token_key(
|
||||
merchant_id: impl Display,
|
||||
merchant_connector_id: impl Display,
|
||||
) -> String {
|
||||
format!("access_token_{merchant_id}_{merchant_connector_id}")
|
||||
}
|
||||
Reference in New Issue
Block a user