【发布时间】:2021-08-02 05:28:40
【问题描述】:
我正在尝试通过我的 Flutter/Firebase 网络应用使用 Apple 登录。它适用于弹出式浏览器选项卡,所以我知道一般配置是正确的。但是,当使用重定向流而不是弹出窗口时,会导致错误。 Apple 登录完成后,它会向 Firebase 的 https://YOUR_FIREBASE_PROJECT_ID.firebaseapp.com/__/auth/handler URL 发送 POST,其中包括 code 和 id_token。但是,Firebase 身份验证处理程序页面会出现以下错误:
Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared.
在重定向到登录页面之前,我是否缺少一些配置来将状态保存在会话存储中?还是我错过了什么?
【问题讨论】:
标签: firebase flutter oauth-2.0 firebase-authentication