Skip to content

Commit

Permalink
feat(wip): 支持 JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Oct 30, 2024
1 parent aba6264 commit b435866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.408",
"version": "2.14.409",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/restful/miscs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function register($app) {
const jwt = eval(`require("jsonwebtoken")`);
const secret = eval('process.env.SUB_STORE_FRONTEND_BACKEND_PATH');
const token = jwt.sign(payload, secret, options);
res.set('Content-Type', 'application/json;charset=utf-8').send({
return success(res, {
token,
secret,
});
Expand Down

0 comments on commit b435866

Please sign in to comment.