英文:
Should I call navigator.credentials.create() in my server-side code or in my client-side code?
问题
根据上面的陈述,我应该在我的服务器端代码还是客户端端代码中调用 navigator.credentials.create()?
英文:
I was reading about WebAuthn at https://webauthn.guide/ when I came across the sentence below.
A server would begin creating a new credential by calling navigator.credentials.create() on the client.
Based on the statement above, should I call navigator.credentials.create() in my server-side code or in my client-side code?
答案1
得分: 0
在你的客户端代码中,navigator.credentials.create() 是WebAuthn API的一部分,仅在客户端可用。
英文:
In your client-side code. navigator.credentials.create() is part of the WebAuthn API that's only available on the client.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论