Closed alenNBH closed 2 months ago
@alenNBH thank you for your report. First of all, is it possible if you could push your project to github and share in here? (this may speed up the process)
Otherwise, would I be able to get more info on your environment?
Once I get these details, I can do a further investigation.
Hi @hcho112,
I can actually recreate the issue by going directly to signer app that is on this link: https://fast-auth-sdk-frontend-xbgueyzluq-uc.a.run.app/create-account After I fill the registration form and receive the sign in email, I open the link in email and it times out after that.
I'm using M1 mac with chrome to replicate above issue. (I don't have a machine that matches exact above sepc) But I got error on /new_account endpoint with error 401 Unauthorized. (can you also confirm that you got status 200 for this endpoint?)
On which page/URL and step are you getting that? I don't see that endpoint when trying to get the passkey popup to show on Chrome or Safari.
I was using https://fast-auth-sdk-frontend-xbgueyzluq-uc.a.run.app/create-account and attempt to create an account
Have you got whitelisted from our mpc recovery service?
Also, if you don't mind, can you try with latest macOS? Since I don't have access to intel Mac machine, its difficult to replicate on my end
For MPC recovery I'm still waiting for a ticket to be resolved here: https://github.com/near/mpc-recovery/issues/563 On my side, in Chrome, I don't even get to that point where it pings /new_account endpoint. To be fair it gets to that step when going through Safari but it doesn't get to it on Chrome. I will update the OS today and try to record a video of the process so that I can show it to you.
I just tried using the url @alenNBH provided and it didn't work out. In my opinion something is wrong with the source code as my MacBook M2 doesn't have issues creating biometric key pairs.
Hi all, I have now tried to recreate the issue with the updated OS version and it finally showed me the popup for the passkey in Chrome. The only thing is that I guess it works only with the latest version of OS...
And now I'm getting to the point that @hcho112 mentioned in one of the previous comments ( pinging /new_account endpoint ) which returns a 401 response but I guess that is the issue with the MPC Recovery service.
@alenNBH Glad to hear. The adoption of passkey is actually fairly recent so it make sense that updating OS fixed the problem. Since this is no longer problem with passkey, we can consider this issue has been resolved?
I agree that we can close the issue, even if there's some problem, I don't believe it's near-api-js the root cause
Prerequisites
near-api-js
.Description
During the setup of FastAuth after complete configuration when landing on the Cloud Run application URL from received sign email during registration, the passkey/webauthn popup doesn't show in Chrome. It works in Safari.
Reproducible demo
No response
Steps to reproduce
Expected behavior
Show passkey popup for creating passkey for user![Screenshot 2024-04-08 at 20 04 49](https://github.com/near/near-api-js/assets/123950803/ff5badd7-805e-49fb-9039-c66afa6508f4)
Actual behavior
Timing out without any errors or logs![Screenshot 2024-04-08 at 20 05 07](https://github.com/near/near-api-js/assets/123950803/170a8d2e-c396-42ad-825b-412ed99c4d13)
Your environment
Self-service