server: base64 decoding padded data #332
Replies: 1 comment 1 reply
-
There isn't anything between @simplewebauthn/browser and @simplewebauthn/server that uses base64 specifically because the spec calls out base64url as a dependency. I do make an accommodation for padding in base64url values, though, in And to reiterate a point I made in #330, regarding
Referring back to my explanation for this in #314, this was because during dogfooding I found it very annoying to always have to decode the base64url-encoded If a developer chooses to set a base64-encoded value as |
Beta Was this translation helpful? Give feedback.
-
Does @simplewebauthn/server handle edge cases where the frontend sends data as JSON and includes padding when encoding the binary data as base64 or does it reject the padding as invalid? If the former, did you do this intentionally and would you mind explaining? I'm mostly curious as I am presented with a decision regardless.
Also sorry, just realized you explicitly said discussion!
Semi-Related but is more specific regarding the userHandle: #314
Beta Was this translation helpful? Give feedback.
All reactions