Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] Mobile Authentication Failure: AuthClient.create() Throws _CryptoError on iOS-Safari and Android-Chrome #864

Open
QiuYeDx opened this issue Mar 24, 2024 · 0 comments

Comments

@QiuYeDx
Copy link

QiuYeDx commented Mar 24, 2024

English

Describe the bug
When calling AuthClient.create() method on mobile devices (iOS-Safari and Android-Chrome), it fails and throws an error:

error: _CryptoError { } 
r@webkit-masked-url://hidden/:27:166011
value@webkit-masked-url://hidden/:27:18
@webkit-masked-url://hidden/:27:184904

However, the same method works as expected on desktop devices (PC), without any issues.

To Reproduce
Steps to reproduce the behavior:

  1. On a mobile device, open the browser (Safari on iOS or Chrome on Android).
  2. Navigate to the page where AuthClient.create() is called.
  3. Observe the error in the console or error handling mechanism: error: _CryptoError { }.
  4. Note that no such error occurs when performing the same steps on a desktop browser.

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

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() 方法时失败,并报错:

error: _CryptoError { } 
r@webkit-masked-url://hidden/:27:166011
value@webkit-masked-url://hidden/:27:18
@webkit-masked-url://hidden/:27:184904

然而,在桌面端设备(PC)上进行相同操作时,该方法可以正常工作,没有出现任何问题。

复现步骤
按照以下步骤可以复现问题:

  1. 在移动设备上,打开浏览器(iOS 上的 Safari 或 Android 上的 Chrome)。
  2. 导航到调用 AuthClient.create() 的页面。
  3. 观察控制台或错误处理机制中的错误:error: _CryptoError { }
  4. 注意,在桌面浏览器上进行相同操作时不会出现此错误。

预期行为
AuthClient.create() 方法应该在移动端和桌面端设备上都能无错误执行,允许在所有平台上成功进行身份验证流程。

截图
error_screenshot

额外上下文
该问题已经在库版本1.0.1到1.1.1之间进行了测试,可以复现。这似乎是一个特定于移动平台的问题,因为桌面平台没有展示出这种行为。此bug影响移动用户通过 AuthClient.create() 进行身份验证的能力,可能阻碍移动设备上的用户体验。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant