authProvider redirectTo Safari mobile
Hi when I use my authProvider for login and add a redirectTo url after success it works on desktop browsers but not on safari iOS mobile browser
3 Replies
Hi @LoadedDie. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the knowledge sources provided, there seems to be an issue with authentication and redirection specifically in Safari browsers, including mobile Safari on iOS. This problem has been reported and addressed by the Refine team. Here's what we know:
1. There was a bug reported where authentication flow was broken due to cookie issues in Safari. This affected both desktop and mobile versions of Safari.
2. The Refine team has acknowledged this issue and has worked on a fix. According to a team member's comment, they "added a small tweak to the proxy tested it in Chrome and Safari, both are working fine" Github Issue #5753.
3. The fix was implemented to address the "Invalid Session Token" error that was occurring during login attempts in Safari.
To ensure you're using the latest version with the fix, you should:
1. Update your Refine packages to the latest versions, especially
@refinedev/core
and @refinedev/devtools
.
2. Make sure your authProvider
is correctly implemented, especially the login
method. It should return an object with the success
and redirectTo
properties:
3. If you're still experiencing issues after updating and ensuring correct implementation, it would be advisable to open a new issue on the Refine GitHub repository with specific details about your implementation and the exact behavior you're seeing on Safari iOS.
Remember, always test your authentication flow on multiple browsers and devices to ensure consistent behavior across platforms.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@403364125578625024> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
other-emerald•4w ago
Hello @LoadedDie, can you open github issue with reporducible example for this? we can track this task better on Github