mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(users): Send profile_id in JWT and user_info APIs (#5817)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use std::fmt::Debug;
|
||||
|
||||
use common_enums::{PermissionGroup, RoleScope, TokenPurpose};
|
||||
use common_enums::{EntityType, PermissionGroup, RoleScope, TokenPurpose};
|
||||
use common_utils::{crypto::OptionalEncryptableName, id_type, pii};
|
||||
use masking::Secret;
|
||||
|
||||
@ -158,6 +158,8 @@ pub struct GetUserDetailsResponse {
|
||||
pub org_id: id_type::OrganizationId,
|
||||
pub is_two_factor_auth_setup: bool,
|
||||
pub recovery_codes_left: Option<usize>,
|
||||
pub profile_id: id_type::ProfileId,
|
||||
pub entity_type: EntityType,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
@ -185,7 +187,7 @@ pub struct GetUserRoleDetailsResponseV2 {
|
||||
pub merchant: Option<NameIdUnit<OptionalEncryptableName, id_type::MerchantId>>,
|
||||
pub profile: Option<NameIdUnit<String, id_type::ProfileId>>,
|
||||
pub status: UserStatus,
|
||||
pub entity_type: common_enums::EntityType,
|
||||
pub entity_type: EntityType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
|
||||
@ -63,5 +63,5 @@ pub enum RoleCheckType {
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
pub struct MinimalRoleInfo {
|
||||
pub role_id: String,
|
||||
pub role_name: String,
|
||||
pub role_name: Option<String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user