@tactfulai/auth
v3.4.4
Published
Tactful UCX Auth SDK
Readme
Tactful.ai Auth SDK
Installation
npm i --save @tactfulai/auth
How To Use In Your Project
const { Configuration, initializeTactful } = require('@tactfulai/auth-sdk');
const authConfig = new Configuration({
basePath: "https://auth.eco.dev.tactful.ai/auth",
apiKey: <Bearer Token>
});
const auth = initializeTactful(authConfig);APIs Calls
https://auth.eco.dev.tactful.ai/
const res = await auth.<namespace>.<operation>(<payload>,<options>);
# example - get user
const user = await auth.user.getUser({user_id:<id>});Generate and Publish
To generate the SDK from latest Swagger URL execute the following commands Check generate-api-client.sh for details on how it works.
# login and install dependencies
npm run login
npm install
# generate the code, and build an release a new version
npm run generate
npm version patch
# A new version will be published to npm or AWS CodeArtifact by Automatically by CI