Identity.createJwt return an invalid token
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?
-
Hi PhotoSì Team,
To best help, we'll be addressing this in the ticket you have open on this issue.
-
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)
Please sign in to leave a comment.
2 Comments