megacommerce-shared 0.4.77

Shared utils, models, config, ... for MegaCommerce Platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// returns redis key
///
/// * `jti`: is jwt token id
pub fn auth_token_status_key(jti: &str) -> String {
  return format!("auth:token#{}", jti);
}

/// returns redis key
///
/// * `email`: is the user email
pub fn auth_user_data_key(email: &str) -> String {
  return format!("auth:user#{}", email);
}