跳转到主要内容
POST
提交WebAuthn的密码配对

授权

Authorization
string
header
必填

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

请求头

X-Device-Id
string

多设备支持的设备标识符。 当多个设备被注册时需要. 如果只有一个设备被注册,它将被用作默认。 也可以以 device_id 查询参数提供。

示例:

"my-device-id"

请求体

application/json

WebAuthn 在 PublicKeyCredential.toJSON() 格式(binary fields base64url-encoded without padding)

id
string
必填
示例:

"XcnXe2W9me1XZTGii6JI9A"

rawId
string
必填
示例:

"XcnXe2W9me1XZTGii6JI9A"

type
string
必填
示例:

"public-key"

response
object
必填

响应

好的

code
string
示例:

"SUCCESS"

message
string
示例:

"Success"

results
string
示例:

null