Giant SSO Sdk
安装
npm i giant-sso-sdk
使用说明
const auth = new GiantSSO({
clientId: '',
env: 'prod',
redirectUri: window.location.href,
/** reverse proxy */
proxyBaseUri: 'https://example.ztgame.com/sso',
/** sdk developer only */
proxyEnv: 'test'
})
auth.login()
const session = await auth.getSession()
auth.logout()