Skip to content

Secure Payment Request Verify relies on patched simplewebauthn #41

@fabiancook

Description

@fabiancook

The verification process for secure payment request matches the standard authentication flow, it should be implemented within simplewebauthn, however this may need to wait till after secure payment request moves to candidate recommendation.

const {verified, authenticationInfo} = await verifyAuthenticationResponse({
response: payment.details,
expectedChallenge,
expectedOrigin: WEBAUTHN_RP_ORIGIN || origin,
expectedRPID: WEBAUTHN_RP_ID || hostname,
authenticator: {
credentialID: new Uint8Array(toArrayBuffer(found.credentialId, true)),
credentialPublicKey: new Uint8Array(toArrayBuffer(found.credentialPublicKey, true)),
transports: found.authenticatorTransports,
counter: found.credentialCounter ?? 0
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions