Closed ismeddnl closed 3 years ago
Just create a new instance?
actually, i dont want to create a new instance, i just want to reupdate the config to usermanager after api call.
Hi @brockallen , i got the solution , i just reupdated the setting like this ,
apisettingcall().then(function (response) {
mgr._settings._authority = "https://localhost/idserv";
mgr._settings._client_id = response.idpSetting.idpClientId;
mgr._settings._redirect_uri = response.idpSetting.idpRedirectUri;
mgr._settings._post_logout_redirect_uri = response.idpSetting.idpPostLogoutUri;
mgr._settings._popup_redirect_uri = response.idpSetting.idpRedirectUri;
mgr._settings._silent_redirect_uri = response.idpSetting.idpSilentRedirectUri;
});
Just create a new instance?
@brockallen Are there any caveats to creating a second user manager instance? For instance, would all instances have to call singinCallback()
on the login callback?
The design is that only one instance runs on a page.
Hi ,
How can we update and reassign config to UserManager instead of recall the contructor (Oidc.UserManager(config)), could you please suggest how to solve this. thanks.