无法在我的Angular7项目中使用token-refresh。

问题描述 投票:1回答:1

我想在我的Angular7代码中使用刷新token功能,试了很多,无法用现有的解决方案来解决。

<html>
<body>
  <script>
     parent.postMessage(location.hash, location.origin);
  </script>
</body>
</html>

错误。Uncaught (in promise): Error: Cannot match any routes: 无法匹配任何路由。URL Segment: 'silent-refresh.html' Error: Cannot match any routes: 无法匹配任何路由。URL段:'silent-refresh.html' at

放在项目中的Silent-refresh路径(angular.json) "assets": [ "src/favicon.ico", "src/assets", "src/silent-refresh.html" ],自动调用刷新令牌的代码 this.oauthService.setupAutomaticSilentRefresh()

angular7 refresh-token angular-oauth2-oidc
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.