def METHOD_NAME(self, refresh_token: str) -> OAuth2Token | None:
    token: OAuth2Token = OAuth2Token.query.filter_by(refresh_token=refresh_token)
    if token and not token.is_revoked() and not token.is_expired():
        return token
    return None