Fix auto auth using git to be done only once (allowing logout to works)