Installation
npm install @thenoughtyfox/noughty-tours-web-sdk
The package ships ES modules, CommonJS and TypeScript declarations.
These pages document v0.0.3, the current release.
Peer dependencies
react and react-dom are optional peers, required only for the React
components. If you are using the client alone, you do not need them.
Stylesheet
The components ship a stylesheet that has to be imported once, anywhere in your app:
import "@thenoughtyfox/noughty-tours-web-sdk/style.css";
Skip it if you are using the client alone. Every rule in it is scoped, so importing it cannot affect the rest of your page — see Styling.
Before your first request
Authentication needs a one-time manual step on our side: we have to know your issuer and JWKS endpoint before any token you sign will be accepted. Read Registering your issuer and send those two values early, so the wait does not block your integration.