首页 > 解决方案 > 在 msal 中调用“loginredirect”后如何获取 id 令牌和访问令牌

问题描述

你好,我在调用 this.authService.loginRedirect({scopes: [ 'user.read', 'openid', 'profile', 'user_impersonation']}) 后寻找检索 id 令牌并找到访问令牌的方法;在 msal 中,我查看了以前的帖子,但没有找到答案,所以向您致以最诚挚的问候,gal

标签: access-tokenmsal

解决方案


通过 localStorage.getItem('msal.idtoken') 找到我的答案


推荐阅读