def METHOD_NAME(self, request, app, token, **kwargs):
    extra_data = token.user_data
    login = self.get_provider().sociallogin_from_response(
        request=request, response=extra_data
    )
    login.state["id_token"] = token.user_data
    # We can safely remove the apple login session now
    # Note: The cookie will remain, but it's set to delete on browser close
    get_apple_session(request).delete()
    return login