Recent searches


No recent searches

Identity.createJwt return an invalid token



Posted May 11, 2022

I am trying to use jwt authentication for zendesk support on my iOS app:

Zendesk.initialize(appId: "<#appId#>",

               clientId: "<#clientId#>",

               zendeskUrl: "<#zendeskUrl#>")

Support.initialize(withZendesk: Zendesk.instance)

// Set an identity for authentication.

let identity = Identity.createJwt(token: myToken)

Zendesk.instance?.setIdentity(identity)

But Identity.createJwt return me an invalid token: if I put it in https://jwt.io/, I don't have 'name' in response payload.

When I call my API with curl, the token is correct.
So, can the problem is with Identity.createJwt ?
Shouldn't Identity.createJwt return the same token as the api?

 


0

2

2 comments

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi PhotoSì Team,
 
To best help, we'll be addressing this in the ticket you have open on this issue.

0


ok, thank you
but I don't understand the reason of the issue.

at what point should zendesk call the api to retrieve the token?
here?

let identity = Identity.createJwt(token: myToken)

why we don't receive any call to our api? (we checked the logs)

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post