thank you for your response,
Just to clarify for "Get Or Create User " i need to pass x-user-key in header for that i need to generate token,
Nees to use this code
const xUserKey = jwt.sign({ id: userId }, ctx.config.encryptionKey, { algorithm: 'HS256' })
Where
userId = any random unique id for user,
encryptionKey = same as i have configure in chat intigration
Right ?