u2f-api icon indicating copy to clipboard operation
u2f-api copied to clipboard

Registration error

Open nickbullll opened this issue 6 years ago • 0 comments

Hey, get this error after register method. After debugging u2f-api I see that chrome return responseData: {errorCode: 2} in this.port_.onMessage.addListener(function (message) line

Error: Registration failed
    at makeError (u2f-api.js:77)
    at callback (u2f-api.js:127)
    at push../node_modules/u2f-api/dist/lib/generated-google-u2f-api.js.u2f.responseHandler_ (generated-google-u2f-api.js:625)
    at generated-google-u2f-api.js:384

Register code:

const result = await u2f.register({version: "U2F_V2", appId: "https://localhost:5000", challenge: "bV4O8XSr3mo016foC9-bY5EyJ-aMRmVlSjzWsED2HUw"})
...

nickbullll avatar Oct 08 '19 20:10 nickbullll