Trying to push custom guest attributes into the Web Messaging widget for authenticated users. We’ve got the OAuth flow set up, and the callback fires fine. The issue is the widget initializes before the auth token lands, so the guest data defaults to anonymous.
I’m using genesys.cloud.messenger.init and then calling genesys.cloud.messenger.updateGuest after the token arrives. The console shows the update call succeeds, but the agent still sees empty fields in the transcript.
// Init widget
genesys.cloud.messenger.init({
organizationId: 'org-id-123',
deploymentId: 'deploy-456'
});
// Later, after auth...
genesys.cloud.messenger.updateGuest({
email: 'user@example.com',
name: 'John Doe',
customFields: { userId: 'abc-123' }
});
Is there a race condition here? The docs mention setGuest but that’s deprecated. The agent UI just shows ‘Anonymous’ regardless. Feels like the widget cache isn’t flushing. Anyone got this to work with a late-binding auth token?