Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.subscribe(result => {
// set abp login info
const tokenExpireDate = remember
? new Date(new Date().getTime() + 1000 * result.expireInSeconds)
: undefined;
this._abpTokenService.setToken(result.accessToken, tokenExpireDate);
this._utilsService.setCookieValue(
AppConsts.authorization.encrptedAuthTokenName,
result.encryptedAccessToken,
tokenExpireDate,
abp.appPath,
);
// 设置用户Token信息
let jwt = new JWTTokenModel();
jwt.token = result.accessToken;
this._tokenService.set(jwt);
if (callback) {
callback();
}
}, (err: any) => finalize(err));
}