Fixes bug where the session and auth management was setup twice