@shun-js/webcc-server 0.6.8 → 0.6.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/webcc-server",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "webcc.dev server",
5
5
  "keywords": [
6
6
  "web claude code"
@@ -32,5 +32,5 @@
32
32
  "access": "public",
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "gitHead": "b8d8674e7676cd3d152db0bd6e35c706e87d4c00"
35
+ "gitHead": "2e16481e703d73845eac724b043e641a56346041"
36
36
  }
@@ -35,8 +35,7 @@ exports.githubCallback = async (req, res) => {
35
35
  const methodName = 'githubCallback';
36
36
 
37
37
  // fallback url
38
- // const fallbackUrl = global.QZ_CONFIG.github.fallbackUrl;
39
- const fallbackUrl = 'http://localhost:7008';
38
+ const fallbackUrl = global.QZ_CONFIG.github.fallbackUrl;
40
39
 
41
40
  // check
42
41
  if (!req.cookies) {
@@ -12,8 +12,7 @@ exports.getGitHubAuthUrl = () => {
12
12
  const state = uuid();
13
13
  const params = new URLSearchParams({
14
14
  client_id: global.QZ_CONFIG.github.clientID,
15
- // redirect_uri: global.QZ_CONFIG.github.callbackUrl,
16
- redirect_uri: 'http://localhost:7008/github/callback',
15
+ redirect_uri: global.QZ_CONFIG.github.callbackUrl,
17
16
  scope: global.QZ_CONFIG.github.scope,
18
17
  state: state,
19
18
  });
@@ -35,8 +34,7 @@ exports.getGithubUserinfo = async (code) => {
35
34
  params: {
36
35
  client_id: global.QZ_CONFIG.github.clientID,
37
36
  client_secret: global.QZ_CONFIG.github.clientSecret,
38
- // redirect_uri: global.QZ_CONFIG.github.callbackUrl,
39
- redirect_uri: 'http://localhost:7008/github/callback',
37
+ redirect_uri: global.QZ_CONFIG.github.callbackUrl,
40
38
  code: code,
41
39
  },
42
40
  headers: {