# Inloggen met Passkey mislukt als ingesteld met Nitrokey 3A Mini

**URL:** https://meta.discourse.org/t/login-with-passkey-fails-if-setup-with-nitrokey-3a-mini/322541
**Category:** Bug
**Tags:** passkey
**Created:** [20 augustus 2024 om 18:37 UTC](https://meta.discourse.org/t/login-with-passkey-fails-if-setup-with-nitrokey-3a-mini/322541 "2024-08-20T18:37:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thess](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thess/32/121467_2.png) [@thess](https://meta.discourse.org/u/thess)
#### Post date: [20 augustus 2024 om 18:37 UTC](https://meta.discourse.org/t/login-with-passkey-fails-if-setup-with-nitrokey-3a-mini/322541/1 "2024-08-20T18:37:48Z")

</div>

Error in log:

> NoMethodError (undefined method `hash\_function’ for an instance of COSE::Algorithm::EdDSA) lib/discourse\_webauthn/authentication\_service.rb:99:in ‘authenticate\_security\_key’

COSE algorithm `Pure EdDSA` does not have a hash function - therefore this error. `cose_ruby` does indeed have EdDSA support since October 2022. Details for using EdDSA can be found [here](https://www.rfc-editor.org/rfc/rfc9053.html#name-edwards-curve-digital-signa).

I think the proper handling of this algorithm would be to call `verify` without a hash as recommended.
