mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 07:19:01 +08:00
feat(wip): 支持 JWT
This commit is contained in:
parent
aba6264988
commit
b4358663cc
@ -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": {
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user