             'href': xhr.responseJSON?.verify_api_endpoint
             'button': xhr.responseJSON?.verify_email_button
           }))
+          @maybe_delete_jwt_token(xhr)
         else
           @$el.find('.fr_loading').text(
             "#{FormRenderer.t.error_loading}: \"#{xhr.responseJSON?.error || 'Unknown'}\""

            'href': xhr.responseJSON?.verify_api_endpoint
            'button': xhr.responseJSON?.verify_email_button
          }))

  waitForRequests: (cb) ->
    if @requests > 0


    @ # explicitly return self

  maybe_delete_jwt_token: (xhr) ->
    # We can't verify anonymous responses.
    if xhr.responseJSON?.template == 'Submission time has expired.'
      delete window.localStorage['jwtToken'] 

  corsSupported: ->
    'withCredentials' of new XMLHttpRequest()

