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

Add Service Worker Support for Token Storage in Asgardeo React SDK #244

Open
pavinduLakshan opened this issue Aug 12, 2024 · 0 comments
Open

Comments

@pavinduLakshan
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The Asgardeo React SDK currently supports Web Worker, Local Storage, and Session Storage for token management. However, it does not support Service Worker, which is recommended as a best practice in the OAuth RFC (OAuth 2.0 Security Best Current Practice). This limitation prevents developers from maintaining the same session across multiple tabs, as Service Workers provide a more robust solution for handling such scenarios compared to Web Workers, while still providing the same benefits the web worker approach provides.

Describe the solution you would prefer

I would like the Asgardeo React SDK to support Service Worker as a token storage option. This would allow developers to maintain consistent sessions across multiple tabs, improving user experience and adherence to OAuth best practices.

Additional context

Service Workers can offer better performance and security for token storage, especially in complex web applications where session consistency across tabs is crucial. Implementing this feature would align the SDK with industry standards as outlined in the OAuth RFC.

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

No branches or pull requests

2 participants