Hi @Aaditya Shete ,
Thanks for reaching out and apologies for delay in response.
I understand that you are looking to persist AD B2C session for single page applications that uses PKCE code flow.
KMSI worked for users of your web and native applications who have local accounts in your Azure AD B2C directory. KMSI didn’t work with social accounts.
As mentioned, SPAs will be issued tokens valid for only 24 hours. After 24 hours, the app must acquire a new authorization code via a top-level frame visit to the login page.
So, after 24 hours you can call authorization endpoint of Azure AD to get the new access and refresh token. This can also be non-interactive flow if the browser has the valid login session.
Hope this will help you.
Thanks,
Shweta
-----------------------------------
Please remember to "Accept Answer" if answer helped you.