Make the login with oauth works in normal case