最近搜索
没有最近搜索
Unauthorized error in iOS and Android sdk.
已于 2023年7月06日 发布
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
3 条评论
Katherine
Unauthorized error in iOS and Android SDK refers to an error message indicating that access to a certain resource or functionality is denied due to lack of proper authorization. It typically occurs when an application or user tries to perform an action or access a restricted feature without the required permissions or valid authentication credentials.
0
Muhammad Waris Shams
Hi there,
I did the troubleshooting and it's working perfectly fine i am attaching screenshots of the command result for your information.
We are stuck on this for weeks can you please help us to get this fixed ASAP?
Thanks.
0
Greg Katechis
0
登录以发表评论。