pub fn generate_jwt(user_id: i64, admin: bool) -> (String, String)
Generates a JWT and its expiry timestamp for a given user.