Token Handler JS Assistant#

The Curity Identity Server supports implementing the Token Handler pattern. A single page application (SPA) that uses this pattern needs to call a set of provided token handler endpoints. To help with that, a lightweight JavaScript library called Token Handler JavaScript Assistant is available to be used. This library makes it easy for an SPA to call the token handler endpoints that are used to login/logout users, to refresh an access token, and more.

The library is available as an npm package in the npm registry. The library’s README file contains instructions on how to install and use it in an SPA. There’s also a sample SPA application on GitHub that demonstrates how to use the library in practice.

Was this helpful?