TypeScript examples demonstrating the @oneidentity/safeguard SDK.
| File | Description |
|---|---|
| password-auth.ts | Username/password authentication |
| certificate-auth.ts | Client certificate authentication |
| a2a-password.ts | A2A credential retrieval |
| signalr-events.ts | Real-time event subscription |
| persistent-events.ts | Auto-reconnect event listener |
| anonymous-status.ts | Unauthenticated status check |
| Directory | Description |
|---|---|
| pkce-login/ | PKCE OAuth login flow |
npx tsx samples/node/password-auth.tsUse a bundler like Vite:
cd samples/browser/pkce-login
npx viteThe Node.JS/ and Browser/ directories contain legacy v7.x samples using the
old callback/promise API. They are preserved for reference but will be removed in
a future release.