最近の検索
最近の検索はありません
Identity.createJwt return an invalid token
投稿日時:2022年5月11日
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件のコメント
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
サインインしてコメントを残します。