@delysium/sso
This package provides the api sdk of the Delysium project
Installation
🚨 Please make sure to add this NPM token in your .npmrc
file:
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
.
You can do so by running the following command:
echo "//registry.npmjs.org/:_authToken=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" >> .npmrc
yarn add @delysium/sso
Domain
Usage
import Client from '@delysium/sso'
import UserResponse from "./user.response";
import {EmptyTokenRequest} from "./request";
const domain = "https://sso-stg.delysium.com"
const client = new Client(domain)
const request: EmptyTokenRequest = {token: "user token"}
const me: UserResponse = await client.userMe(request)