Update auth_manager.js