~2 min read
Quick start
From zero to a working check: install packages, keep secrets on the server, wrap your app, and verify sessions on protected routes.
What you need
project id(public) andproject secret(server only) from the dashboard.- Your app served on the same domain where verification runs (so cookies work).
- Node 20+ if you use the server helper.
Install
terminal
$ npm install @tnuser/qyzar-client @tnuser/qyzar-server
Five steps
- Put the
project secretin server env only — never in the browser bundle. - On your server, mint a client token and pass it to the React layout.
- Wrap your app with
QyzarorQyzarSiteLayout(Browser SDK). - After verify, the SDK sets
qyzar_session_idandqyzar_session_tokencookies — read them withgetConnectSessionId()/getConnectSessionToken()or forwardCookieon the server (Client tokens, Verify sessions). - Add allowed domains in project settings so real users are not blocked.
Checklist
- Secret never appears in client code or
NEXT_PUBLIC_*vars. - Protected API routes call Qyzar before side effects.
- Client token is refreshed when the connect session changes.
API base URL (production): https://apisecure.qyzar.eu. Live connection default: wss://ws1.qyzar.eu.
