3dw / auto20-next

auto20-next
https://we.alearn.org.tw/
MIT License
4 stars 1 forks source link

PWA登入後看不到任何資料 #144

Closed bestian closed 2 months ago

bestian commented 2 months ago

好像是有bug 我用Google登入之後,結果一直卡在loader

作業系統: iOS 瀏覽方式: P W A (一般網頁瀏覽是正常)

image

leechiuhui commented 2 months ago

I encountered this situation two weeks ago as well, but it was resolved after reloading. I just recorded various scenarios and error messages, and plan to handle it on Tuesday.https://www.loom.com/share/3b486cacb04d4f8daee03e08aee1b585

image

Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.

leechiuhui commented 2 months ago

2024-07-24:not only did the phone keep loading, but the computer's Google Chrome did as well. However, after reloading, the login process worked fine. Initially, it seems that this issue occurs because there is no UID data during the first login attempt, causing the system to hang. Starting today, I will begin learning how to observe the data in local storage.

截圖 2024-07-24 晚上9 34 30
leechiuhui commented 2 months ago

1Temporarily remove the loader 2The Map also looks weird when not logged in ,即使已經登入,也會出現登入按鈕 3Immediately after logging out, the Map still shows the logged-in state 4 friends怪怪的 還沒顯示有我的旗幟登入狀態的資料,就會出現“離我最近” 所有登入登出的狀態都需要重新檢查邏輯。

ac315f48-f34f-4b7b-8bb2-1b3357d2ddfd 14aa393e-f3b6-4906-816e-df712dc78915 560397b9-019e-4b37-9365-cb30b617d9ed 5 friends頁面登入時也會一直在loader打轉

bestian commented 2 months ago

Immediately after logging out, the Map still shows the logged-in state

logout之後,auth token還在,所有旗幟還是可以讀,應該是正常的. login的部份修好了.

leechiuhui commented 2 months ago

I initially wanted to debug it slowly by myself, but my skills are indeed not sufficient. I am currently studying the teacher's solution, which is also a great way to improve my skill. Thank you, teacher.:)