Skip to content

Strivacity/sdk-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JavaScript SDK

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.

Client SDKs

Usage of Build and Serve Scripts

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

Build SDK Packages

To build a specific SDK package, use one of the following commands:

  • pnpm sdk:angular:build – Build the Angular SDK
  • pnpm sdk:next:build – Build the Next.js SDK
  • pnpm sdk:nuxt:build – Build the Nuxt SDK
  • pnpm sdk:react:build – Build the React SDK
  • pnpm sdk:remix:build – Build the Remix SDK
  • pnpm sdk:vue:build – Build the Vue SDK
  • pnpm sdk:core:build – Build the Core SDK

All SDK build scripts support the --watch flag for continuous build during development. For example: pnpm sdk:react:build --watch

Serve Example Applications

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 domain
  • VITE_CLIENT_ID: the client ID of your application
  • VITE_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 app
  • pnpm app:next:serve – Serve the Next.js example app
  • pnpm app:next-headless:serve – Serve the Next.js headless example app
  • pnpm app:nuxt:serve – Serve the Nuxt example app
  • pnpm app:react:serve – Serve the React example app
  • pnpm app:remix:serve – Serve the Remix example app
  • pnpm app:vue:serve – Serve the Vue example app
  • pnpm app:wc:serve – Serve the Web Component example app
  • pnpm app:ionic-angular:serve – Serve the Ionic Angular example app
  • pnpm app:ionic-react:serve – Serve the Ionic React example app
  • pnpm 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.

Contributing

Please see our contributing guide.

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5