mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
14 lines
373 B
Rust
14 lines
373 B
Rust
//! Commonly used utilities for access token
|
|
|
|
use std::fmt::Display;
|
|
|
|
use crate::id_type;
|
|
|
|
/// Create a key for fetching the access token from redis
|
|
pub fn create_access_token_key(
|
|
merchant_id: &id_type::MerchantId,
|
|
merchant_connector_id_or_connector_name: impl Display,
|
|
) -> String {
|
|
merchant_id.get_access_token_key(merchant_connector_id_or_connector_name)
|
|
}
|