def METHOD_NAME(self, *args, **kwargs):
    try:
        self.github_user_token = GitHubUserToken.objects.get(
            user=self.request.user
        )
    except GitHubUserToken.DoesNotExist:
        return redirect(self.github_auth_url)
    if self.github_user_token.access_token_is_expired:
        try:
            self.github_user_token.refresh_access_token()
            self.github_user_token.save()
        except HTTPError:
            self.github_user_token.delete()
            return redirect(self.github_auth_url)
    if not self.installations:
        return redirect(self.github_app_install_url)
    return super().METHOD_NAME(*args, **kwargs)