mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
fix(login): Return promise from passkey authentication to fix automatic prompt (#10991)
# Which Problems Are Solved The passkey login page was not rendering properly in production (Cloud Run) deployments, with the submit button and component content not appearing. Additionally, the automatic passkey prompt was not triggering correctly. # How the Problems Are Solved Added the missing return statement before navigator.credentials.get() in the submitLoginAndContinue function. This ensures the promise is properly returned and chained in the useEffect hook, fixing the automatic passkey prompt flow. Removes the recently introduces guides to passkeys that could result in a hydration error due to the <a> tag being rendered differently on server / client environement # Additional Changes This issue was most probably introduced in PR #10971. The component uses promise chaining (.then().catch().finally()) which requires the promise to be returned, unlike the RegisterPasskey component which uses async/await and works correctly without an explicit return.
This commit is contained in:
@@ -261,10 +261,6 @@
|
||||
"verify": {
|
||||
"title": "使用密钥认证",
|
||||
"description": "您的设备将请求指纹、面部识别或屏幕锁",
|
||||
"info": {
|
||||
"description": "使用您设置的密钥进行安全认证。",
|
||||
"link": "了解更多关于密钥"
|
||||
},
|
||||
"usePassword": "使用密码",
|
||||
"submit": "继续",
|
||||
"errors": {
|
||||
|
||||
Reference in New Issue
Block a user