mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
12 lines
350 B
Rust
12 lines
350 B
Rust
//! 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_or_connector_name: impl Display,
|
|
) -> String {
|
|
format!("access_token_{merchant_id}_{merchant_connector_id_or_connector_name}")
|
|
}
|