@ -148,9 +148,10 @@ pub fn generate_invite_claims( 
				
			 
			
		
	
		
		
			
				
					 
					 
					     invited_by_email : Option < String > ,  
					 
					 
					     invited_by_email : Option < String > ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					)   -> InviteJwtClaims   {  
					 
					 
					)   -> InviteJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					     let   expire_hours   =   i64 ::from ( CONFIG . invitation_expiration_hours ( ) ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					     InviteJwtClaims   {  
					 
					 
					     InviteJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					         nbf : time_now . timestamp ( ) ,  
					 
					 
					         nbf : time_now . timestamp ( ) ,  
				
			 
			
		
	
		
		
			
				
					
					 
					 
					         exp : ( time_now   +   Duration ::days ( 5 ) ) . timestamp ( ) ,  
					 
					 
					         exp : ( time_now   +   Duration ::hours ( expire_hours ) ) . timestamp ( ) ,  
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					 
					 
					         iss : JWT_INVITE_ISSUER . to_string ( ) ,  
					 
					 
					         iss : JWT_INVITE_ISSUER . to_string ( ) ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         sub : uuid ,  
					 
					 
					         sub : uuid ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         email ,  
					 
					 
					         email ,  
				
			 
			
		
	
	
		
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
					@ -185,9 +186,10 @@ pub fn generate_emergency_access_invite_claims( 
				
			 
			
		
	
		
		
			
				
					 
					 
					     grantor_email : Option < String > ,  
					 
					 
					     grantor_email : Option < String > ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					)   -> EmergencyAccessInviteJwtClaims   {  
					 
					 
					)   -> EmergencyAccessInviteJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					     let   expire_hours   =   i64 ::from ( CONFIG . invitation_expiration_hours ( ) ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					     EmergencyAccessInviteJwtClaims   {  
					 
					 
					     EmergencyAccessInviteJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					         nbf : time_now . timestamp ( ) ,  
					 
					 
					         nbf : time_now . timestamp ( ) ,  
				
			 
			
		
	
		
		
			
				
					
					 
					 
					         exp : ( time_now   +   Duration ::days ( 5 ) ) . timestamp ( ) ,  
					 
					 
					         exp : ( time_now   +   Duration ::hours ( expire_hours ) ) . timestamp ( ) ,  
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					 
					 
					         iss : JWT_EMERGENCY_ACCESS_INVITE_ISSUER . to_string ( ) ,  
					 
					 
					         iss : JWT_EMERGENCY_ACCESS_INVITE_ISSUER . to_string ( ) ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         sub : uuid ,  
					 
					 
					         sub : uuid ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         email ,  
					 
					 
					         email ,  
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					@ -211,9 +213,10 @@ pub struct BasicJwtClaims { 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					pub   fn  generate_delete_claims ( uuid : String )   -> BasicJwtClaims   {  
					 
					 
					pub   fn  generate_delete_claims ( uuid : String )   -> BasicJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					     let   expire_hours   =   i64 ::from ( CONFIG . invitation_expiration_hours ( ) ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					     BasicJwtClaims   {  
					 
					 
					     BasicJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					         nbf : time_now . timestamp ( ) ,  
					 
					 
					         nbf : time_now . timestamp ( ) ,  
				
			 
			
		
	
		
		
			
				
					
					 
					 
					         exp : ( time_now   +   Duration ::days ( 5 ) ) . timestamp ( ) ,  
					 
					 
					         exp : ( time_now   +   Duration ::hours ( expire_hours ) ) . timestamp ( ) ,  
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					 
					 
					         iss : JWT_DELETE_ISSUER . to_string ( ) ,  
					 
					 
					         iss : JWT_DELETE_ISSUER . to_string ( ) ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         sub : uuid ,  
					 
					 
					         sub : uuid ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					     }  
					 
					 
					     }  
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					@ -221,9 +224,10 @@ pub fn generate_delete_claims(uuid: String) -> BasicJwtClaims { 
				
			 
			
		
	
		
		
			
				
					 
					 
					
 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					 
					 
					pub   fn  generate_verify_email_claims ( uuid : String )   -> BasicJwtClaims   {  
					 
					 
					pub   fn  generate_verify_email_claims ( uuid : String )   -> BasicJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
					 
					 
					     let   time_now   =   Utc ::now ( ) . naive_utc ( ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					 
					 
					 
					     let   expire_hours   =   i64 ::from ( CONFIG . invitation_expiration_hours ( ) ) ;  
				
			 
			
		
	
		
		
			
				
					 
					 
					     BasicJwtClaims   {  
					 
					 
					     BasicJwtClaims   {  
				
			 
			
		
	
		
		
			
				
					 
					 
					         nbf : time_now . timestamp ( ) ,  
					 
					 
					         nbf : time_now . timestamp ( ) ,  
				
			 
			
		
	
		
		
			
				
					
					 
					 
					         exp : ( time_now   +   Duration ::days ( 5 ) ) . timestamp ( ) ,  
					 
					 
					         exp : ( time_now   +   Duration ::hours ( expire_hours ) ) . timestamp ( ) ,  
				
			 
			
				
				
			
		
	
		
		
	
		
		
			
				
					 
					 
					         iss : JWT_VERIFYEMAIL_ISSUER . to_string ( ) ,  
					 
					 
					         iss : JWT_VERIFYEMAIL_ISSUER . to_string ( ) ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					         sub : uuid ,  
					 
					 
					         sub : uuid ,  
				
			 
			
		
	
		
		
			
				
					 
					 
					     }  
					 
					 
					     }