Reach uses JSON Web Tokens (JWT) for secure authentication. Each token links a user in your system to a user in Reach.
Please reach out to support@embedreach.com to
get a Shared Secret for your platform in order to generate JWT tokens.
If your app enforces security headers like Content Security Policy (CSP) or Cross-Origin Opener Policy (COOP), see Security Headers (CSP & COOP) for required configurations.
Tenant Scoped JWT Token Requirements
Your tenant-scoped JWT token must include the following fields:
Never expose your Shared Secret on the client side. JWT generation must always
be handled server-side.
Token Lifecycle
We recommend tokens expire after 1 hour (3600 seconds). The
Reach SDK handles token expiration by calling your onReauthRequested callback when a
token expires.
For a full server side example of how to generate JWT Tokens that are
compatible with Reach please see the examples section
here.