LamKingTak

aws 问题请教, aws-cognito aws-amplify 前端登录问题

  •  
  •   LamKingTak · Feb 26, 2025 · 2378 views
    This topic created in 441 days ago, the information mentioned may be changed or developed.
    大佬们,小弟前端切图仔,遇到点问题,项目需要引入 aws-cognito 登录,我用了 aws-amplify 插件,使用 signInWithRedirect 方法,本地都调通了,发布到线上之后就卡住了。

    本地:点击登录按钮调用 signInWithRedirect 跳转到 AWS Amplify 内置的登录页面,正常登录后跳转到 redirectSignIn 设置的 home 页面,交换 token ,api 请求数据等一切都正常

    线上:前面一样,到了跳转到 redirectSignIn 设置的 home 页面,不知道为什么就是不执行交换 token 的步骤,很是苦恼。

    fetchAuthSession() 方法为什么线上就不执行了呢。。。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:44 · PVG 23:44 · LAX 08:44 · JFK 11:44
    ♥ Do have faith in what you're doing.