@d-lab/sso
v0.5.1
Published
Client library for DLab SSO apis
Downloads
26
Readme
@d-lab/sso
This package provides the api sdk of the DLab SSO project
Installation
npm i @d-lab/sso
Domain
Production: https://sso.dlab.com
Usage
import Client from '@d-lab/sso'
// 1. specify your domain
const domain = "https://sso.dlab.ovh"
// 2. create the client using domain
const client = new Client(domain)
// 3. login
const payload: LoginRequest = {
email: "[email protected]",
password: "12345"
}
const session: TokenResponse = await client.auth.login(payload)
// 4. verifying your auth and getting current user
const me: UserResponse = await client.auth.me()