Okta-signin-widget and token manager (sessionStorage)


I am using okta-signin-widget in my angular app. I want to configure the inner OktaAuth to write the token into the session storage instead fo local storage.

I know OktaAuth has this config but I couldn’t find away to change in okta-signin-widget

var config = {
url: ‘https://{yourOktaDomain}’,
tokenManager: {
storage: ‘sessionStorage’

var authClient = new OktaAuth(config);

How can I change the tokenManager config from okta-signin-widget ?


Did you find a solution to this issue? I couldn’t configure it either.
Appreciate if you can help.


Even i kind of getting same issue. looks like sessionstorage not working I am using @okta/okta-signin-widget": “^4.1.1”,

Did you find any solution for it?

have you tried this to provide the config for okta-auth-js? https://github.com/okta/okta-signin-widget#configuration

authParams: {
    // Configuration for authClient. See https://github.com/okta/okta-auth-js#configuration-options