Refactor to prioritize environment variables for Google client ID and secret, and adjust error handling for missing credentials in production.