JWT authentication, no email-address in user-profile



Gepostet 11. Juli 2022

Hi team,

We are using JWT authentication for end-users in our app. That way they can start chatting with us right away without providing their personal information. (Or so we thought)

However, even when adding the email address to the JWT payload, the email address is not carried over to the Zendesk end-user profile.

    let payload = {
      name: 'Example Person',
      email: 'some@example.com',
      external_id: '123',
      scope: 'user'
    };
    var token = await jwt.sign(payload, 
  'xxxxxxxxREPLACEDxxxxxxxxx',
  { header: { kid: "xxxxxxxxREPLACEDxxxxxxxxx" } });

This works really well and  the enduser does get the little green tick as seen below:

But only the name seems to be added to their profile.

This rings true for the Webwidget and both mobile SDKs.

So at the moment, we are still asking our users for their email addresses via chat. But this is less than perfect. Any idea?

Thanks


1

7

0 Kommentare

Anmelden, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post