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

Introduce a config to disable periodic session refresh #226

Open
JayaShakthi97 opened this issue May 5, 2024 · 0 comments
Open

Introduce a config to disable periodic session refresh #226

JayaShakthi97 opened this issue May 5, 2024 · 0 comments

Comments

@JayaShakthi97
Copy link

Is your suggestion related to an experience ? Please describe.

With current implementation, for disabling periodic session refresh, -1 should be passed as the session refresh interval. This is because a fallback value has been defined as 300 seconds. If the session refresh interval is set to undefined, this fallback value will be considered rather than disabling the functionality.
https://github.com/asgardeo/asgardeo-auth-spa-sdk/blob/3b874cdb57f203cb006e407c9ad899d0e59813fc/lib/src/helpers/authentication-helper.ts#L102

Describe the improvement

A dedicated config should be introduced to disable the periodic session refresh as it can be handled by the Application level according to the usecase.

Additional context

N/A

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