@delysium/sso-api
Interfaces for Delysium SSO api.
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
npm i @delysium/sso-api
Usage
import {AuthApi, BodyRequest, Empty, Endpoint, LoginRequest, TokenResponse, UserResponse, AuthEmptyRequest} from "@delysium/sso-api"
class AuthSDK implements AuthApi {
async getMe(request: AuthEmptyRequest): Promise<UserResponse> {
const endpoint = Endpoint.ME
return new Promise((resolve, reject) => {
})
}
async login(req: BodyRequest<LoginRequest>): Promise<TokenResponse> {
const endpoint = Endpoint.LOGIN
return new Promise((resolve, reject) => {
})
}
async logout(req: AuthEmptyRequest): Promise<Empty> {
const endpoint = Endpoint.LOGOUT
return new Promise((resolve, reject) => {
})
}
}