These SDKs allows you to integrate Strivacity’s policy-driven journeys into your brand’s JavaScript application. The SDK uses the OAuth 2.0 PKCE flow authenticate with Strivacity.
See our Developer Portal to get started with developing with the Strivacity product.
- Core - Example app
- Angular - Example app - Ionic Example app
- Next.js - Example app
- Nuxt - Example app
- Remix - Example app
- React - Example app - Ionic Example app
- Vue.js - Example app - Ionic Example app
This repository provides npm scripts to build SDK packages and serve example applications. You can run these scripts from the project root using your preferred package manager (e.g., pnpm, npm run, or yarn).
To build a specific SDK package, use one of the following commands:
pnpm sdk:angular:build– Build the Angular SDKpnpm sdk:next:build– Build the Next.js SDKpnpm sdk:nuxt:build– Build the Nuxt SDKpnpm sdk:react:build– Build the React SDKpnpm sdk:remix:build– Build the Remix SDKpnpm sdk:vue:build– Build the Vue SDKpnpm sdk:core:build– Build the Core SDK
All SDK build scripts support the
--watchflag for continuous build during development. For example:pnpm sdk:react:build --watch
Before serving any example application, you must create a .env.local file in the repository root. Copy the contents of .env.local.example and fill in the following values:
VITE_ISSUER: your cluster domainVITE_CLIENT_ID: the client ID of your applicationVITE_SCOPES: the scopes you want to request
To start the development server for an example application, use one of the following commands:
pnpm app:angular:serve– Serve the Angular example apppnpm app:next:serve– Serve the Next.js example apppnpm app:next-headless:serve– Serve the Next.js headless example apppnpm app:nuxt:serve– Serve the Nuxt example apppnpm app:react:serve– Serve the React example apppnpm app:remix:serve– Serve the Remix example apppnpm app:vue:serve– Serve the Vue example apppnpm app:wc:serve– Serve the Web Component example apppnpm app:ionic-angular:serve– Serve the Ionic Angular example apppnpm app:ionic-react:serve– Serve the Ionic React example apppnpm app:ionic-vue:serve– Serve the Ionic Vue.js example app
Replace pnpm with npm run or yarn if you use a different package manager.
Please see our contributing guide.
