Fix broken authorization code generation behavior.