Recent searches


No recent searches

Resetting User Identity



Posted Nov 01, 2021

Hey, everyone. I'm trying to setup the Zendesk chat on mobile so that both not logged and logged users to be able to chat with support. Everything worked fine but until I tried logging in/out of the app. According to the docs here, this is what's supposed to happen when one changes the identity this would override your user's identity, removing tickets and any other stored information. I can clearly see that the identity has been changed, evidence being the transcript I've gotten in the attachment (what I'm doing is setting an anonymous identity with or without name). You can see the same user becomes different people, which is really not something you're expected to see. Could you point me to a correct way of implementing this so different users don't have access to the same chat?


0

3

3 comments

image avatar

Mick O'Donnell

Zendesk Product Manager

Hi Y!

Thanks for reaching out. Firstly, can I just confirm whether you are trying to integrate the Support SDK, or the Chat SDK please? The docs that you link to are for the Support SDK, but the logs in the image here appear to be from the Chat SDK. 

Assuming that it is the Chat SDK that you are integrating, the right way to reset the user's identify is documented here. I hope that this is helpful.

0


Mick O'Donnell Firstly, thank you for your help, that worked!

However, I am unsure of the relation of the libraries' identities. I indeed wanted to implement Chat with a bot, but I was under the impression setting identity in the aforementioned way should work (since changing the identity did get me the user's email and name).

Still, thank you for helping!

0


image avatar

Mick O'Donnell

Zendesk Product Manager

You could also check out our new Zendesk SDKs for messaging. This has a powerful bot experience build in, and works very well out of the box. We'll be adding a JWT authentication API in the very near future to handle your signed-in users.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post