Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPA and API synchronization сhallenges #166

Open
monolithed opened this issue Jan 8, 2025 · 0 comments
Open

SPA and API synchronization сhallenges #166

monolithed opened this issue Jan 8, 2025 · 0 comments

Comments

@monolithed
Copy link

monolithed commented Jan 8, 2025

Hi there!

I've noticed that the API for this package and @workos-inc/node are somewhat inconsistent, even though they essentially implement the same functionality. A lot of the logic in the session file is already implemented in @workos-inc/node.

I don't know the reasons behind this, but it makes it harder to understand the architecture of WorkOS. The reason I decided to open this issue is that I got stuck trying to integrate Magic Auth. It seemed like a simple authentication method, but there are no examples in the documentation on how to set up a session, how to manage that session on the client side, or how to redirect the user to another route smoothly without reloading the page.
It's not hard for me to figure it out, but there aren't any ready-made templates, guides, or clean APIs to save time

In the end, we have 5 packages: @workos-inc/node, @workos-inc/authkit-nextjs, @workos-inc/authkit-react, @workos-inc/authkit-js, and a 3rd party next-auth with an adapter for SSO only — all with different APIs, code duplication, and no examples for custom authentication in a SPA.

I wanted to check if there are any plans to synchronize the APIs or add examples specifically for SPAs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant