TrueSift Next.js SDK
The official @truesift/next package integrates TrueSift into Next.js App Router applications. The SDK version currently used by TrueSift is 0.3.0.
Installation
bash
pnpm add @truesift/nextArchitecture
The integration is split into three clearly separated areas:
- Browser:
TrueSiftCheckperforms the visible verification and returns a short-lived verification token. - Local challenge and verify routes: the Secret Key remains server-side and is never exposed to the browser.
- Protected business route: it accepts the token as client input, defines action, path, and origin itself, and executes the protected operation only after successful server-side proof verification.
Security boundary
A browser display or client-reported allow is not proof. The protected route must validate the token server-side against the expected context.
More information
The current interactive SDK presentation and package example are available on the TrueSift SDK page. The package is also published on npm.