@msg-team/gauth-node
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

GAuth - Node

단 하나의 계정으로 광주소프트웨어마이스터고등학교의 모든 서비스를 이용할 수 있게

📚 Description

GAuth를 더 편하게 이용할 수 있도록 node 버전으로 만들어진 라이브러리입니다.

Requirements

  • axios

🛠️ Installation

// npm
> npm i @msg-team/gauth-node

// yarn
> yarn add @msg-team/gauth-node

🙋 How to use

code 발급

import Gauth from '@msg-team/gauth-node'

const result = await Gauth.issueCode({ email: 's12345', password: '1234' })

// { code: string }
console.log(result)

token 발급

import Gauth from '@msg-team/gauth-node'

const result = await Gauth.issueToken({
  code: 'string',
  clientId: 'string',
  redirectUri: 'string',
  clientSecret: 'string',
})

// { accessToken: string, refreshToken: string }
console.log(result)

token 재발급

import Gauth from '@msg-team/gauth-node'

const result = await Gauth.reissueToken({
  refreshToken: 'string',
})

// { accessToken: string, refreshToken: string }
console.log(result)

유저 정보 가져오기

import Gauth from '@msg-team/gauth-node'

const result = await Gauth.getUser({
  accessToken: 'string',
})

// { accessToken: string, refreshToken: string }
console.log(result)

Package Sidebar

Install

npm i @msg-team/gauth-node

Weekly Downloads

4

Version

1.0.9

License

MIT

Unpacked Size

17.4 kB

Total Files

27

Last publish

Collaborators

  • chan-up
  • kimsh153
  • baegteun
  • bestteemo