【发布时间】:2022-01-23 07:25:18
【问题描述】:
我有两个 Angular 项目:主项目和管理员
我在主项目中有登录页面。当用户登录时,为用户生成 jwt 令牌并保存在
本地存储。我想与管理项目共享此令牌
this.authService.Login().subscribe(res=>{
localstorage.setItem('token', res.token);
});
【问题讨论】:
标签: asp.net angular authentication jwt token