docs: def get_redirect(request):
          """
          Create a HTTP redirect response that removes the token from the URL.
  
          """
          params = request.GET.copy()
          params.pop(TOKEN_NAME)
          url = request.path
          if params:
              url += '?' + urlencode(params)
          return redirect(url)