You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time you follow an invite link, the sign-up modal dialog is displayed even if you are logged in.
If you log in to an existing account with username and password, then the modal goes away and you can access the join button.
If you attempt to log in with a google account, the OAuth workflow redirects you to the homepage. Navigating back to the invite presents the dialog again.
This means it is impossible to join a community with a google login workflow.
To Reproduce
Steps to reproduce the behavior:
Log in to playabl
Follow an invite link
Note the create account dialog
Expected behavior
A clear and concise description of what you expected to happen.
If you are already logged in, following an invite link should not prompt you to log in again.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome
Version [e.g. 22] 131.0.6778.205 (Official Build) (64-bit) (cohort: Stable)
Additional context
Add any other context about the problem here.
I haven't had time to prove it but this seems likely to be a race condition of some kind.
The InvitePage checks for user info when it is mounted but that info is loaded via a callback. If the page mount happens before the callback fires, then the dialog will be shown.
A potential solution might be to move the Join button and all associated logic into a component and put it inside an AuthShell which properly handles the login state machine.
I might get a chance to try that out this week.
The text was updated successfully, but these errors were encountered:
Ha, no worries! I've got got to figure out why the dang supabase github action doesn't work anymore so I can merge it. If it keeps giving me issues I might temporarily bypass it to get this in sooner than later.
Describe the bug
Every time you follow an invite link, the sign-up modal dialog is displayed even if you are logged in.
If you log in to an existing account with username and password, then the modal goes away and you can access the join button.
If you attempt to log in with a google account, the OAuth workflow redirects you to the homepage. Navigating back to the invite presents the dialog again.
This means it is impossible to join a community with a google login workflow.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
If you are already logged in, following an invite link should not prompt you to log in again.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
I haven't had time to prove it but this seems likely to be a race condition of some kind.
The InvitePage checks for user info when it is mounted but that info is loaded via a callback. If the page mount happens before the callback fires, then the dialog will be shown.
A potential solution might be to move the Join button and all associated logic into a component and put it inside an AuthShell which properly handles the login state machine.
I might get a chance to try that out this week.
The text was updated successfully, but these errors were encountered: