@theswing/sso

1.0.20 • Public • Published

@theswing/cdn

The Swing 공용 SSO 모듈

Installing

Using npm:

$ npm install -D @theswing/sso

Example

const { SSO, getQuery } = require("@theswing/sso");
// or
import { SSO, getQuery } from "@theswing/sso";

API

new API(config)
  • 객체 생성자
  • config: 설정
    • host: 기본 호스트 (https://api.admin.swingmobility.dev)
    • redirectOnExpire: 만료시 리다이렉트 여부 (기본 true)
    • forceEnvironment: 개발 환경 강제 설정 여부 (값을 주지 않으면 hostname에 따라 자동 설정됨) dev | stage | production
new SSO(config)
  • 객체 생성자
  • config: 설정
    • domain: String 사이트의 domain 코드 (없으면 default)
    • store: Boolean localStorage 사용여부
get token: String
  • 프로퍼티
  • API용 토큰
get domain: String
  • 프로퍼티
  • 지정한 도메인 코드

Readme

Keywords

none

Package Sidebar

Install

npm i @theswing/sso

Weekly Downloads

16

Version

1.0.20

License

ISC

Unpacked Size

19.8 kB

Total Files

6

Last publish

Collaborators

  • mswswing
  • jwswing