Authorization Code OAuth 2 flow now working reliably