         resp items[M.STORE.LAST_VERSION]
         return
       return
+
+    @isAuthorisationErrorPage: (contents) -> /reauth/i.test contents
 
     @isAuthorisationErrorResponse: (resp) ->
       resp?.toLowerCase().indexOf "authorization" isnt -1

    onScheduleError: (status, params, error, responseText) =>
      log 'There was an error', arguments
      if (status is 'parsererror' and M.isAuthorisationErrorPage responseText) or (M.isAuthorisationErrorResponse status)
        params ?= {}
        params.action = 'setup'
        delete params.callback if params.callback
        @gettingStarted params
      else
        notification =
          action:   'notification'

        dialog.title authDialog.title()

        authOkButton.on 'click', =>
          @openAuthWindow {}
          dialog.close()
          return

