mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +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:
		| @ -1,3 +1,6 @@ | ||||
| #[cfg(feature = "olap")] | ||||
| pub mod user; | ||||
|  | ||||
| // ID generation | ||||
| pub(crate) const ID_LENGTH: usize = 20; | ||||
| pub(crate) const MAX_ID_LENGTH: usize = 64; | ||||
| @ -52,3 +55,6 @@ pub const ROUTING_CONFIG_ID_LENGTH: usize = 10; | ||||
|  | ||||
| pub const LOCKER_REDIS_PREFIX: &str = "LOCKER_PM_TOKEN"; | ||||
| pub const LOCKER_REDIS_EXPIRY_SECONDS: u32 = 60 * 15; // 15 minutes | ||||
|  | ||||
| #[cfg(any(feature = "olap", feature = "oltp"))] | ||||
| pub const JWT_TOKEN_TIME_IN_SECS: u64 = 60 * 60 * 24 * 2; // 2 days | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Mani Chandra
					Mani Chandra