cmilesyy
cmilesyy3w ago

Logging into my application via safari not working.

I am not able to log into my application on safari via google auth - it works fine in chrome When i click the google login button, it just redirect me back to the homepage without logging me in. I have enabled debugging and this hasnt helped, I have attached a screenshot. bfe1 = chrome 3b3d = safari I am using convex@1.24.1, convex-dev/auth@0.0.86 and auth/core@0.39.1\ has anyone experienced this? I can login with email and password fine.
No description
3 Replies
cmilesyy
cmilesyyOP3w ago
so I managed to fix this on my device by turning off 'Prevent cross-site tracking' in the settings - but is there any other way that we can get around this?
erquhart
erquhart3w ago
That would only affect cookie based oauth, which Convex Auth only does for server side stuff with Next.js. I also see this working fine in Safari with cross site tracking enabled on the v1 template demo. I would try installing @auth/core to the exact supported version:
npm install @auth/core@0.37.0 --save-exact
npm install @auth/core@0.37.0 --save-exact
cmilesyy
cmilesyyOP3w ago
Thank you for this! Interestingly enough, I had set my providers as a type, which then would be selected depending on which login method was chosen - which is not working on safari - but setting the provider directly to the button works

Did you find this page helpful?