2.0.13 • Published 10 months ago

@30shine-fe/sso-erp v2.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

30Shine SSO Script

Only use for 30Shine ecosystem

Publish command

npm publish --access public

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()
2.0.13

10 months ago

2.0.11

10 months ago

2.0.7

10 months ago

2.0.12

10 months ago

2.0.9

10 months ago

2.0.10

10 months ago

2.0.8

10 months ago

2.0.6

11 months ago

2.0.5

12 months ago

2.0.4

12 months ago

2.0.3

12 months ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago