Description
Users signing up via Google OAuth successfully authenticate but then encounter a Missing OAuth2 state cookie error when the /onboarding/personal form is submitted. From the user's perspective the error appears to happen when interacting with the date of birth field.
Steps to reproduce
- Visit polar.sh and click Sign up
- Choose "Sign in with Google" and complete Google OAuth
- Land on
/onboarding/personal and begin filling in the form (name, date of birth, etc.)
- On form submission/navigation, get redirected to
/auth?error=Missing+OAuth2+state+cookie
- Retrying via "Sign in with Google" on the error page also fails; user is sent back to
/onboarding/start
Expected behavior
User should proceed through onboarding without losing the OAuth state cookie.
Notes
Sent by @IsakPar021 from Account creation error logs.
Description
Users signing up via Google OAuth successfully authenticate but then encounter a
Missing OAuth2 state cookieerror when the/onboarding/personalform is submitted. From the user's perspective the error appears to happen when interacting with the date of birth field.Steps to reproduce
/onboarding/personaland begin filling in the form (name, date of birth, etc.)/auth?error=Missing+OAuth2+state+cookie/onboarding/startExpected behavior
User should proceed through onboarding without losing the OAuth state cookie.
Notes
OAUTH2_SESSION_STATE_COOKIE_DOMAINconfig; worth verifying this is correctly set for the onboarding redirect chainSent by @IsakPar021 from Account creation error logs.