Identity.createJwt return an invalid token
Publication le 11 mai 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 commentaire
Zendesk PhotoSì
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?
why we don't receive any call to our api? (we checked the logs)
0
Christopher Kennedy
To best help, we'll be addressing this in the ticket you have open on this issue.
0
Se connecter pour laisser un commentaire.