function redirectAfterLogin(appState, onRedirectCallback) {
    if (!window) {
        return;
    }
    // We want to remove the state and the code from the querystring.
    window.history.replaceState({}, document && document.title, window && window.location.pathname);
    // Allow the implementation of custom redirect logic.
    if (onRedirectCallback) {
        onRedirectCallback(appState);
    }
}
/**
 * Logic which will take care of cleaning up the state and optionally calling the redirect handler.
 */
Logic which will take care of cleaning up the state and optionally calling the redirect handler.
Logic which will take care of cleaning up the state and optionally calling the redirect handler .
function redirectAfterLogin(appState, onRedirectCallback) {
    if (!window) {
        return;
    }
    window.history.replaceState({}, document && document.title, window && window.location.pathname);
    if (onRedirectCallback) {
        onRedirectCallback(appState);
    }
}
function redirectAfterLogin ( appState , onRedirectCallback ) { if ( ! window ) { return ; } window . history . replaceState ( { } , document && document . title , window && window . location . pathname ) ; if ( onRedirectCallback ) { onRedirectCallback ( appState ) ; } }
Logic which will take care of cleaning up the state and optionally calling the redirect handler.
Logic which will take care of cleaning up the state and optionally calling the redirect handler .
// We want to remove the state and the code from the querystring. // Allow the implementation of custom redirect logic.