@d-lab/sso
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

@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: "myemail@gmail.com",
    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()

Readme

Keywords

Package Sidebar

Install

npm i @d-lab/sso

Weekly Downloads

6

Version

0.5.1

License

MIT

Unpacked Size

147 kB

Total Files

281

Last publish

Collaborators

  • draym