liuyu 5 年 前
コミット
90468aa978
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/service/login.js

+ 1 - 1
app/service/login.js

@@ -59,7 +59,7 @@ class LoginService extends CrudService {
     res.userid = _userid;
     res.openid = openid;
     res.type = type;
-    const token = await jwt.sign(res, secret, { expiresIn, issuer, subject });
+    const token = await jwt.sign(...res, secret, { expiresIn, issuer, subject });
     return token;
   }