from datetime import datetime


def is_token_expired(issued_at: datetime, token_duration_min: int) -> bool:
    """
    Returns True if `issued_at` is earlier than `token_duration_min` ago.
    """

    return (datetime.now() - issued_at).total_seconds() / 60.0 > token_duration_min