Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Samples

TypeScript examples demonstrating the @oneidentity/safeguard SDK.

Node.js

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

Browser

Directory Description
pkce-login/ PKCE OAuth login flow

Running Node.js Samples

npx tsx samples/node/password-auth.ts

Running Browser Samples

Use a bundler like Vite:

cd samples/browser/pkce-login
npx vite

Legacy Samples

The 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.