def METHOD_NAME(self, user, provider, **values):
    """
    This hook is called before the authentication provider is updated.
    :param user: The user that is updating the authentication provider.
    :param provider: The authentication provider that is being updated.
    :param values: The values that are used to update the authentication provider.
    """
    pass