Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created Apr 12, 2016
Embed
What would you like to do?
var filters = {
accept:
[
{
type: 'FIDO_2_0',
id: getCredentialIDFromLocalStorage()
}
]
};
window.msCrendentials.getAssertion(challenge, filters)
.then(function(attestation) {
// Send signed challenge and meta data to server
sendToServer({
credential: {type: 'ScopedCred', id: attestation.id},
clientData: attestation.signature.clientData,
authnrData: attestation.signature.authnrData,
signature: attestation.signature.signature
};
);
});
@nathancrank
Copy link

nathancrank commented Aug 22, 2016

window.msCrendentials has a typo, should be window.msCredentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment