mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(router): Add new JWT authentication variants and use them (#2835)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										14
									
								
								crates/api_models/src/events/user.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								crates/api_models/src/events/user.rs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| use common_utils::events::{ApiEventMetric, ApiEventsType}; | ||||
|  | ||||
| use crate::user::{ConnectAccountRequest, ConnectAccountResponse}; | ||||
|  | ||||
| impl ApiEventMetric for ConnectAccountResponse { | ||||
|     fn get_api_event_type(&self) -> Option<ApiEventsType> { | ||||
|         Some(ApiEventsType::User { | ||||
|             merchant_id: self.merchant_id.clone(), | ||||
|             user_id: self.user_id.clone(), | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ApiEventMetric for ConnectAccountRequest {} | ||||
		Reference in New Issue
	
	Block a user
	 Mani Chandra
					Mani Chandra