Business has workstations that auto login on startup, an IDX cookie is created from Okta. Angular 10 App uses NPM package @okta/okta-signin-widget/v/4.5.2 and the response token on a successful login contains the auto login credentials (due to idx cookie) vs web portal login creds. How do we override the idx credentials on a custom login page? Domain restrictions prevent us from deleting the cookie, but even if we could it would probably break other Apps that depend on those creds.
Connected with an Okta Engineer, pointed us to the AuthClient object which has a closeSession method in the AuthJS library that clears local cookies for the signin widget used in the project.