def METHOD_NAME(self, request=None, myclient=None, token=None, **kwargs):
    if myclient and token:
        user_info = myclient.userinfo(token=token)
        user = self.get_user_by_user_info(user_info=user_info)
        return user if self.user_can_authenticate(user) else None