After doing some investigation, what i noticed is when i click login button from home page to show the login widget, in the server side session store data an entry is made with key “oidc:https://dev-85865421.okta.com/oauth2/default” only when i use OKTA hosted widget. If i use the custom login widget , this session store data is missing.