Skip to content

Commit b435866

Browse files
committed
feat(wip): 支持 JWT
1 parent aba6264 commit b435866

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.14.408",
3+
"version": "2.14.409",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/restful/miscs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function register($app) {
3535
const jwt = eval(`require("jsonwebtoken")`);
3636
const secret = eval('process.env.SUB_STORE_FRONTEND_BACKEND_PATH');
3737
const token = jwt.sign(payload, secret, options);
38-
res.set('Content-Type', 'application/json;charset=utf-8').send({
38+
return success(res, {
3939
token,
4040
secret,
4141
});

0 commit comments

Comments
 (0)