Unauthorized error in iOS and Android sdk.
Data ultimo post: 06 lug 2023
Zendesk support SDK is integrated in iOS and Android platforms for Guide, Tickets, and Chat features. As per the documentation, we are integrated the Support SDK, Enabled the JWT authentication, and configured the backend APIs and client code as per the documentation.
From the mobile side, we are updating identity as JWT token same as the below-mentioned code.
Zendesk.initialize(appId: "9cf3743ac0381f2357d0bd9a446158b5e26146a28747ae40",clientId: "mobile_sdk_client_c3ebb9d0999720cd6d3f",zendeskUrl: "https://ethizo.zendesk.com");let token = Identity.createJwt(token: "unique_db_user_identifier")Zendesk.instance?.setIdentity(token)
While trying to show the Guides screen the same as below mentioned code we are getting "Couldn't authenticate you" from SDK but it's working fine earlier.
Please find more details below.
Code:
let helpCenter = HelpCenterUi.buildHelpCenterOverviewUi(withConfigs: [])
navigationController?.pushViewController(helpCenter, animated: false)
Here is the api that SDK is hitting
https://ethizo.zendesk.com/access/sdk/jwt
POST Params
{
"user": {
"token": "bd8a9ca8ec6a98eb9298f3a9b18c4eff"
}
}
Response:
{
"error": "Couldn't authenticate you"
}
Response Code: 401
Remote address: ethizo.zendesk.com/104.16.53.111:443
Zendesk-SDK/4.0.0 iOS/16.4 Variant/Core
Please help in this regard.
Thanks.
0
3

0 commenti
Accedi per lasciare un commento.