Open JayaShakthi97 opened 6 months ago
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
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