mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +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}")
|
||||
}
|
||||
@ -2,6 +2,7 @@
|
||||
#![warn(missing_docs, missing_debug_implementations)]
|
||||
#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR" ), "/", "README.md"))]
|
||||
|
||||
pub mod access_token;
|
||||
pub mod consts;
|
||||
pub mod crypto;
|
||||
pub mod custom_serde;
|
||||
|
||||
Reference in New Issue
Block a user