xyntherys
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
That's interesting.
Maybe it was something on my end totally.
I did not have any custom operation. In the App.tsx I get user using the useAuth() hook, this returned 401 when I was facing that issue (/me API)
I'll try to come up with it again. Thank you for investigating this.
26 replies
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
@miho here are the steps to reproduce:
1. Keep the user logged in (used Google sign-in as AuthProvider)
2. Delete all the sessions of the user from DB
3. The user gets logged out.
4. If the user tries Google sign-in again, there is a login-logout loop. For a split second the user gets logged-in and then auto log out (/me failing)
I found this for Google Auth users only.
Just to share: I made the user clear all site data and he was unable to login later.
26 replies
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
I'm pretty new to this and building the MVP for an idea. Sorry for the stupid questions
26 replies
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
@Adam, I recreated the issue using a test user.
Did hard refresh but it did not help with the issue.
26 replies
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
@kapa.ai is there any alternative solution to this? Any DB modification I can make to fix the issue?
26 replies
WWasp
•Created by xyntherys on 11/9/2024 in #đŸ™‹questions
Manually deleted all Sessions for an user from DB. Unable to login with Google (login-logout loop)
@kapa.ai how do I delete the localStorage values of the user and which elements?
Maybe I can hard code a method to clear localStorage once when the user logs in on login hook?
26 replies