Web Messaging SDK custom guest attributes not persisting

I’m trying to pass custom attributes for authenticated users via the Genesys Cloud Web Messaging SDK. The widget loads fine, but when I check the conversation in the admin UI, the attributes are missing. Here’s the config:

genesyscloud.widget.init({
 attributes: {
 userId: '12345',
 email: 'user@example.com'
 }
});

Is there a specific timing issue or a different API call needed to ensure these stick?