Callback function of t.authorize not called in desktop app

Hi, we get a problem when calling t.authorize() in the Trello desktop app. The following code works well in browser, but not in desktop app

t.authorize(authUrl, authorizeOpts)
  .then(function (token) {
    // unreachable code in desktop app...
  })
)

The callback in then function wasn’t run in desktop app. My question is, is this expected behavior, or something goes wrong?

Thanks in advance!