However, the same method works as expected on desktop devices (PC), without any issues.
To Reproduce
Steps to reproduce the behavior:
On a mobile device, open the browser (Safari on iOS or Chrome on Android).
Navigate to the page where AuthClient.create() is called.
Observe the error in the console or error handling mechanism: error: _CryptoError { }.
Note that no such error occurs when performing the same steps on a desktop browser.
Expected behaviorAuthClient.create() should execute without errors on both mobile and desktop devices, allowing for successful authentication processes across all platforms.
Screenshots
Additional context
The issue has been tested and can be reproduced with library versions from 1.0.1 to 1.1.1. It seems to be a problem specific to mobile platforms, as desktop platforms do not exhibit this behavior. This bug impacts mobile users' ability to authenticate via AuthClient.create(), potentially hindering the user experience on mobile devices.
English
Describe the bug When calling
AuthClient.create()
method on mobile devices (iOS-Safari and Android-Chrome), it fails and throws an error:However, the same method works as expected on desktop devices (PC), without any issues.
To Reproduce Steps to reproduce the behavior:
AuthClient.create()
is called.error: _CryptoError { }
.Expected behavior
AuthClient.create()
should execute without errors on both mobile and desktop devices, allowing for successful authentication processes across all platforms.Screenshots![error_screenshot](https://github.com/dfinity/agent-js/assets/71062076/e7f241cd-d436-401f-814d-158739cd8163)
Additional context The issue has been tested and can be reproduced with library versions from 1.0.1 to 1.1.1. It seems to be a problem specific to mobile platforms, as desktop platforms do not exhibit this behavior. This bug impacts mobile users' ability to authenticate via
AuthClient.create()
, potentially hindering the user experience on mobile devices.中文
描述问题 在移动端设备(iOS-Safari 和 Android-Chrome)上调用
AuthClient.create()
方法时失败,并报错:然而,在桌面端设备(PC)上进行相同操作时,该方法可以正常工作,没有出现任何问题。
复现步骤 按照以下步骤可以复现问题:
AuthClient.create()
的页面。error: _CryptoError { }
。预期行为
AuthClient.create()
方法应该在移动端和桌面端设备上都能无错误执行,允许在所有平台上成功进行身份验证流程。截图![error_screenshot](https://github.com/dfinity/agent-js/assets/71062076/e7f241cd-d436-401f-814d-158739cd8163)
额外上下文 该问题已经在库版本1.0.1到1.1.1之间进行了测试,可以复现。这似乎是一个特定于移动平台的问题,因为桌面平台没有展示出这种行为。此bug影响移动用户通过
AuthClient.create()
进行身份验证的能力,可能阻碍移动设备上的用户体验。