generateAttestationOptions
parameters structure
#107
Replies: 1 comment 1 reply
-
Ah, but there was a reason - I spell it out on the Philosophy page of the docs: https://simplewebauthn.dev/docs/simplewebauthn/philosophy
That's really what my intention was in collapsing the arguments: I want to offer a library that a developer with no familiarity with the WebAuthn spec could reasonably implement with the assistance of some higher-level implementation docs paired with judicious JSDoc commenting like this to help communicate the various values: Sure, as someone who is now deep into the spec it can be a little annoying to remember that the At the end of the day I think it's more important that this library makes implementation easy for developers with close to no knowledge about the WebAuthn spec. WebAuthn should be easy to set up so that devs can go on to work on more interesting features. As such I stand by the structure of the library and its arguments, though as evidenced in other discussions and past issues here I'm open to suggestions for improvement :) |
Beta Was this translation helpful? Give feedback.
-
I'm wondering what the reasoning is behind changing the parameters the generate methods take, as opposed to the "normal" structure of the DOM options objects.
Specifically:
yields
I'm not sure this counts as simpler... I'm finding it more difficult to work through https://webauthn.guide/ with SimpleWebAuthn side-by-side, simply because the latter changes things for no good reason I can see.
It might feel easier to get going in some cases, but as soon as you really want to move forward, there's a constant cross-referencing, especially into the spec. Do you feel it's worth the difference?
(Updating the options should be simple enough, I see no reason not to maintain backwards compatibility.)
Beta Was this translation helpful? Give feedback.
All reactions