def METHOD_NAME(token):
    expired, invalid, user, token_data = get_token_status(
        token, 'confirm', 'CONFIRM_EMAIL', return_data=True)
    new_email = None
    if not invalid and user:
        _, token_email_hash, new_email = token_data
        invalid = not verify_hash(token_email_hash, user.email)
    return expired, invalid, user, new_email