Recent searches
No recent searches
New end user authentication for messaging widget
Posted Feb 27, 2023
I am exploring messaging web widget. To show our chat agent if the end user is verified or not we have end user authentication through JWT for messaging. I am able to use that, it work like charm.
Now condition for above is user must exist at zendesk to verify that, what about the case if the user logged in for first time in my website. I wanted to create zendesk end user on the fly when anyone logged into my website. So I already have all the details if user start any conversation.
Is there any way or best practices to handle that.
0
5
5 comments
Tipene Hughes
Hey Yogesh,
A new end user profile will be created for the user when they successfully authenticate and start a messaging conversation. If you want to create a user profile prior to a conversation being initiated, you could look at using the Users API endpoint. Here's a link to the end-user authentication docs which go in to more detail about the user profile creation flow:
Authenticating end users in messaging
I hope this helps. Feel free to reach out with any questions!
Tipene
0
Bala Natrayan
Yogesh Rai You mentioned in your question that you were able to authenticate users in messaging successfully. I'm trying to do the same and running into issues. Can you please post your payload from jwt.io? I would like to compare my payload with yours. Here is mine. Thank you for your help.
0
Mike DR
0
ahsanu amala
Bala Natrayan is your issues already solved? i found same issues when try to authenticate enduser with jwt.
i already try to change "exp" to unix timestamp, but nothing changed, i also has follow documentation but nothing help,
i also found many user struggling with problem: https://support.zendesk.com/hc/en-us/community/posts/4709220609306-Receive-error-401-unauthorized-when-login-with-web-widget
but no official try to helping out on that thread.
Mike DR is this solved?
0
Tipene Hughes
HI ahsanu amala,
Just a heads up that I've replied to your question in another thread on the same issue.
0