Skip to content

Commit 92b3c32

Browse files
committed
Update 2.3.8
1 parent 581bebc commit 92b3c32

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

lib/oauth.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { USER, CLIENT } = require("./tool.js");
2-
const { AUTH, state } = require("./val.js");
2+
const { AUTH } = require("./val.js");
33

44
const channel = require("./channel.js");
55

@@ -28,9 +28,10 @@ class chzzkToken {
2828

2929
/**
3030
* @param {string} code
31+
* @param {string} state
3132
* @returns {Promise<chzzkTokenData>}
3233
*/
33-
async function get (code) {
34+
async function get (code, state) {
3435
return new Promise(async (resolve, reject) => {
3536
let options = {
3637
grantType: "authorization_code",

lib/val.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const chzzkBaseURL = "https://api.chzzk.naver.com/";
33
const gameBaseURL = "https://comm-api.game.naver.com/";
44
const naverBaseURL = "https://apis.naver.com/";
55

6-
const state = "zxclDasdfA25";
7-
86
let NID = {
97
AUT: null,
108
SES: null
@@ -38,7 +36,6 @@ module.exports = {
3836
chzzkBaseURL: chzzkBaseURL,
3937
gameBaseURL: gameBaseURL,
4038
naverBaseURL: naverBaseURL,
41-
state: state,
4239
NID: NID,
4340
AUTH: AUTH,
4441
login: login,

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "buzzk",
33
"displayName": "BUZZK",
4-
"version": "2.3.7",
4+
"version": "2.3.8",
55
"description": "뿌지직 (BUZZK) - 치지직(CHZZK) 챗봇을 더욱 쉽게 개발할 수 있도록 돕는 비공식 라이브러리.",
66
"main": "lib/index.js",
77
"type": "commonjs",

0 commit comments

Comments
 (0)