...
|
...
|
@@ -73,10 +73,10 @@ const Auth = { |
|
|
syncUserSession(uid, req, res) {
|
|
|
return Auth.profile(uid).then((userInfo) => {
|
|
|
let token = sign.makeToken(uid);
|
|
|
let data = userInfo.data;
|
|
|
let user = userInfo.data;
|
|
|
|
|
|
if (data) {
|
|
|
let uidCookie = `{data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`;
|
|
|
if (user) {
|
|
|
let uidCookie = `{data.profile_name}::${user.uid}::${user.vip_info.title}::${token}`;
|
|
|
|
|
|
req.session._TOKEN = token;
|
|
|
req.session._LOGIN_UID = uid;
|
...
|
...
|
|