buzzk 2.3.7 → 2.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/oauth.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const { USER, CLIENT } = require("./tool.js");
2
- const { AUTH, state } = require("./val.js");
2
+ const { AUTH } = require("./val.js");
3
3
 
4
4
  const channel = require("./channel.js");
5
5
 
@@ -28,9 +28,10 @@ class chzzkToken {
28
28
 
29
29
  /**
30
30
  * @param {string} code
31
+ * @param {string} state
31
32
  * @returns {Promise<chzzkTokenData>}
32
33
  */
33
- async function get (code) {
34
+ async function get (code, state) {
34
35
  return new Promise(async (resolve, reject) => {
35
36
  let options = {
36
37
  grantType: "authorization_code",
package/lib/val.js CHANGED
@@ -3,8 +3,6 @@ const chzzkBaseURL = "https://api.chzzk.naver.com/";
3
3
  const gameBaseURL = "https://comm-api.game.naver.com/";
4
4
  const naverBaseURL = "https://apis.naver.com/";
5
5
 
6
- const state = "zxclDasdfA25";
7
-
8
6
  let NID = {
9
7
  AUT: null,
10
8
  SES: null
@@ -38,7 +36,6 @@ module.exports = {
38
36
  chzzkBaseURL: chzzkBaseURL,
39
37
  gameBaseURL: gameBaseURL,
40
38
  naverBaseURL: naverBaseURL,
41
- state: state,
42
39
  NID: NID,
43
40
  AUTH: AUTH,
44
41
  login: login,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzk",
3
3
  "displayName": "BUZZK",
4
- "version": "2.3.7",
4
+ "version": "2.3.8",
5
5
  "description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
6
6
  "main": "lib/index.js",
7
7
  "type": "commonjs",