应该在我的服务器端代码还是客户端端代码中调用 navigator.credentials.create()?

huangapple go评论76阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年8月10日 21:53:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76876406.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定