def METHOD_NAME(self, session) -> bool:
    issuedToken = IssuedToken.objects.filter(
        session = session
    )
    # TODO: check also ACR
    return (
        (issuedToken.count() - 1) < getattr(
            settings, "OIDCFED_PROVIDER_MAX_REFRESH", 1
        )
    )