Skip to content

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

@pavinduLakshan

Description

@pavinduLakshan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions