angular - 使用 Auth0 的角度 UI 中的 localStorage 问题
问题描述
mysite.com/{integerid}/home
我有一个 Windows 应用程序,用户将在我的 Angular UI 上启动一个特定的路径( )。
我在我的 Angular UI 上设置了 auth0 身份验证,所以一旦上面的 URL 启动,我将参数保存integerid
在 localStorage 中,然后浏览器重定向到 auth0 的 Microsoft 登录,然后返回到我正在检索的回调 URLintegerid
并返回mysite.com/{integerid}/home
.
问题是由于重定向远离mysite.com
我认为我丢失了我保存为的值integerid
,localStorage
所以在验证用户在 URL 上的 URL 之后会发生什么mysite.com/null/home
知道如何解决这个问题吗?
解决方案
推荐阅读
- python - 使用 pytorch 进行 BERT 文本分类
- python - 在 matplotlib 中为多个子图设置标题
- php - 如何在虚拟主机 apache 机器上提供多个域共有的图像和 pdf 文件
- javascript - Onchange AppScript - 为特定列创建更改历史记录
- python - BeautifulSoup 查找返回无
- javascript - res.cookie 适用于 Localhost 和 Postman,但不适用于生产
- react-native - 在本机反应中在后台上传大型视频文件
- dataweave - DataWeave 中的分组方式和平均平面数据
- python - 如何检查变量是否是 Python 3 中 mpfr 的实例?
- javascript - 按属性顺序排列的 geojson 数据样式(传单)