Token sample

Scenario 1

Actions

  1. Click Resolve button to resolve the pending promise with the XHR response.

Expected result

Scenario 2

Actions

  1. Restart the page with CMD + R
  2. Click Reject button to reject the pending promise with an error.

Expected result

Token URL callback example