Parallel Logout doesn't work #30
Replies: 1 comment
-
|
Thank you for the feedback, @ricardogomez-dev! When a user authenticates via the Parallel JS SDK, an OAuth 2.0 PKCE session is established between your site and Parallel Markets. This session enables secure, scoped access to user data (e.g., via However, since the SDK is embedded on a domain other than To date, we've taken the position that partners should not authenticate or de-authenticate users on their behalf, whether in an embedded flow or on our main site. That said, our longer-term roadmap includes separating authentication contexts between embedded environments and our main platform. This would allow partners to end authenticated sessions more cleanly (though partners will never be able to initiate authentication on a user's behalf). We haven’t prioritized this yet, largely because the risk in shared-device environments is mitigated by a few key factors:
In cases where multiple users are sharing a device, we provide a “Not <email_address>?” link in embedded contexts. This allows users to explicitly end the current session (permissable inside the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It appears that Parallel Markets stores the user session in both cookies and localStorage. I'm attempting to programmatically clear the session when a user switches investor accounts by calling parallel.logout(). However, this method doesn't fully clear the previous session, which prevents the accreditation process from working correctly for new users.
Currently, only the initial login works as expected. After that, unless cookies and localStorage are manually cleared, login and logout do not behave properly for subsequent users. Obviously, asking hundreds of thousands of investors—many of whom are not technically inclined—to manually clear browser storage is not a practical solution.
I need to know how to fully clear the user session using the Parallel Markets SDK, so that switching accounts works seamlessly without requiring any manual intervention.
Beta Was this translation helpful? Give feedback.
All reactions