Prove Auth SDK for Web
This SDK provides JavaScript client API to the Prove's authentication platform Prove Auth.
- Make sure you have Node JS, npm, TypeScript installed:
- Install node, currently used version is v22.21.1
- Make sure to uninstall any old version on TypeScript compiler - npm uninstall tpc
- Install dependencies npm install
- Build the project from your IDE or CLI - npm run build
- Build the SDK first, then build the sample code:
- Build SDK web bundle - npm run clean && npm run build && npm run bundle-dev
- Build and start sample code - cd samples/basic; npm run build && npm run serve
This project provides several options for running unit tests. Follow these instructions to execute the tests:
To run the standard test suite, run the following:
```
npm test-in-browser
This command will execute all unit tests and display the results in your default web browser.
If you need to run tests in a Node.js environment, run the following:
```
npm run test
This command will execute all unit tests and display the results in your terminal.
Test Runner is a proprietary system of integration testing for Prove Auth backend services and SDKs.
This repository includes only SDK integration part. The rest of the infrastructure is not currently
available to the public.
To run integration tests using Test Runner, assuming you have the infrastructure available, run the following:
npm run test-runner