wakeupParasite token
This commit is contained in:
parent
63ddd648ac
commit
8a79d2d90c
|
|
@ -1298,7 +1298,8 @@ export async function wakeupParasite(params, context) {
|
|||
playerId: parasite.userId,
|
||||
disablesAt: Date.now() + parasite.tokenLifeLength,
|
||||
env,
|
||||
tokenValue,
|
||||
refreshedAt: Date.now(),
|
||||
value: tokenValue,
|
||||
applicationId: context.getApplicationId(),
|
||||
},
|
||||
}, { dontCollect: true });
|
||||
|
|
@ -1330,7 +1331,6 @@ function checkTokenEnvConsistency(env1, env2) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
export async function refreshToken(params, context) {
|
||||
const { env, tokenValue } = params;
|
||||
|
|
|
|||
|
|
@ -1312,7 +1312,8 @@ async function wakeupParasite(params, context) {
|
|||
playerId: parasite.userId,
|
||||
disablesAt: Date.now() + parasite.tokenLifeLength,
|
||||
env,
|
||||
tokenValue,
|
||||
refreshedAt: Date.now(),
|
||||
value: tokenValue,
|
||||
applicationId: context.getApplicationId(),
|
||||
},
|
||||
}, { dontCollect: true });
|
||||
|
|
@ -1345,7 +1346,6 @@ function checkTokenEnvConsistency(env1, env2) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
async function refreshToken(params, context) {
|
||||
const { env, tokenValue } = params;
|
||||
|
|
|
|||
|
|
@ -1848,7 +1848,8 @@ export async function wakeupParasite<
|
|||
playerId: parasite.userId,
|
||||
disablesAt: Date.now() + parasite.tokenLifeLength!,
|
||||
env,
|
||||
tokenValue,
|
||||
refreshedAt: Date.now(),
|
||||
value: tokenValue,
|
||||
applicationId: context.getApplicationId(),
|
||||
},
|
||||
},
|
||||
|
|
@ -1885,7 +1886,6 @@ function checkTokenEnvConsistency(env1: WebEnv | WechatMpEnv | NativeEnv, env2:
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
export async function refreshToken<
|
||||
|
|
|
|||
Loading…
Reference in New Issue