@30shine/sso-erp
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

30Shine SSO Script

Only use for 30Shine ecosystem

Install package

npm i @30shine/sso-erp

Import and create sso object

Create sso object with env development, test, staging or production

import { SSO } from '@30shine/sso-erp'

const sso = new SSO(env.process.REACT_APP_ENV || "test")

Functions

1. SSO Login

Login and get credentials object

interface SSOCredentials {
    AccessToken: string,
    IdToken: string,
    RefreshToken: string
}
const credentials: SSOCredentials = sso.ssoLogin();

2. SSO Refresh token

const newCredentials: SSOCredentials = sso.refreshToken();

3. SSO Logout

sso.ssoLogout()

Readme

Keywords

Package Sidebar

Install

npm i @30shine/sso-erp

Weekly Downloads

7

Version

1.0.6

License

ISC

Unpacked Size

6.17 kB

Total Files

4

Last publish

Collaborators

  • vunv30shine