Strip base64 padding in protocol.URLEncodedBase64
Southclaws opened this issue · 1 comments
Southclaws commented
Description
(version: github.com/go-webauthn/webauthn v0.5.0)
It seems the type protocol.URLEncodedBase64
is, correctly, decoding base64 without padding. (ref) however, a frontend tool I'm using to implement webauthn seems to be adding padding to the publicKey.response.userHandle
.
Now I can strip this out myself, but would it be incorrect for this library to conveniently strip padding automatically given that it's not meant to be there anyway?
Use Case
No response
Documentation
No response
james-d-elliott commented
I'm a bit on the fence on this. Potentially this is something we can do. I will look at direction from the spec if I get time during the week.