@padium/sso
v0.7.5
Published
Client library for Padium SSO apis
Readme
@padium/sso
This package provides the api sdk of the Padium SSO project
Installation
npm i @padium/ssoDomain
Production: https://padium-sso.dlab.ovh
Usage
import Client from '@padium/sso'
// 1. specify your domain
const domain = "https://sso.padium.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()