Integration basics
Do I need to install an npm package?
Do I need to install an npm package?
nsdk-loader.js, render a host container, and provide a short-lived Embed Token from your backend.Which frameworks are supported?
Which frameworks are supported?
Can I embed multiple widgets on one page?
Can I embed multiple widgets on one page?
What browsers are supported?
What browsers are supported?
Authentication
How long should the Embed Token live?
How long should the Embed Token live?
iat and exp expressed in Unix seconds.Should I store the Embed Token in the browser?
Should I store the Embed Token in the browser?
What happens when the Embed Token expires?
What happens when the Embed Token expires?
What makes a token valid?
What makes a token valid?
aud = nsdk-embed and the required claims: iss, sub, aud, iat, exp, and jti. Include nsdk.user.name and nsdk.user.email so the session has the expected user context.When should the frontend fetch the Embed Token?
When should the frontend fetch the Embed Token?
Embedding runtime
Should I use declarative or imperative boot?
Should I use declarative or imperative boot?
How does the SDK handle SPA route changes?
How does the SDK handle SPA route changes?
Do I need to call NSDK('destroy') on unmount?
Do I need to call NSDK('destroy') on unmount?
Can I delay boot until the page is fully ready?
Can I delay boot until the page is fully ready?
NSDK('boot', ...).Security
Can I sign tokens in the frontend?
Can I sign tokens in the frontend?
What CSP headers do I need?
What CSP headers do I need?
script-src, frame-src, and any related network policies used by your environment.Is the Embed Token visible to end users?
Is the Embed Token visible to end users?
Can I include extra metadata in the token?
Can I include extra metadata in the token?
API & data
How do I know if my integration is working?
How do I know if my integration is working?
What does a 401 after successful embed mean?
What does a 401 after successful embed mean?
How often does data refresh?
How often does data refresh?
Can I test with mock tenant users first?
Can I test with mock tenant users first?