Oidc-client-js: Allow location.replace when using signinRedirect

Created on 11 Jul 2019  路  3Comments  路  Source: IdentityModel/oidc-client-js

I need control RedirectNavigator.navigate(params) method using
window.location = params.url;
or
window.location.replace(params.url);

current is:
navigate(params) {
if (!params || !params.url) {
Log.error("RedirectNavigator.navigate: No url provided");
return Promise.reject(new Error("No url provided"));
}

    **window.location = params.url;
    // window.location.replace(params.url);**
    return Promise.resolve();
}
enhancement

Most helpful comment

That is all I added! :)

All 3 comments

I've added a useReplaceToNavigate flag that you can pass to signinRedirect.

That is all i need, thanks.

That is all I added! :)

Was this page helpful?
0 / 5 - 0 ratings