trusty-js
v0.0.1
Published
This is a JavaScript client library for the Trusty API.
Downloads
2
Readme
Trusty JS Library
This is a JavaScript client library for the Trusty API.
It lets you create and authenticate users and is a building block for constructing the UI for signups, password recovery, login and logout.
Installation
# Install with npm
npm install trusty-js
# Install with yarn
yarn add trusty-js
# Install with pnpm
pnpm install trusty-js
Usage
import Trusty from "trusty-js";
// Instantiate the Trusty auth client with an optional configuration
auth = new Trusty({
APIUrl: "https://<your_trusty_domain_name>",
audience: "my-web-app",
setCookie: false,
});
License
This project is open-sourced software licensed under the Apache License 2.0.
Copyrights in this project are retained by their contributors.
See the license file for more information.
🤫 Psst! If you like my work you can support me via GitHub sponsors.