Single Sign On(SSO) with Embedded okta widget in Angular

Hello team okta,

I’ve created a angular SPA using okta sign in widget (not OIDC login). I want users to be automatically get logged in if there’s an existing valid okta session.
But I found that It is not working as expected. I have to login using sign in widget once again even if there’s valid okta session.

I have followed steps given in Sign in to your SPA with the embedded Okta Sign-In Widget | Okta Developer for embedded okta widget. Also clone project samples-js-angular/custom-login at master · okta/samples-js-angular · GitHub and found that, It also doesn’t provide SSO with Okta sign in widget.

Can you please let me know if it is possible? If its, then can you please provide code sample or hints?

Library used: @okta/okta-signin-widget

Issue: Facing problem with SSO when logging into application (SPA website) without doing login into okta embedded widget.

Expected behaviour : Login into website automatically when user has valid okta session (that is a user is already logged into okta).

Thanks!