The challenge field of the PublicKeyCredentialRequestOptionsJSON class is meant to have a value that is base64Url encoded (see https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson). This PR adds a method to encode a String to be base64Url encoded, adds unit tests, and updates associated existing unit tests.
Summary
The challenge field of the
PublicKeyCredentialRequestOptionsJSON
class is meant to have a value that is base64Url encoded (see https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson). This PR adds a method to encode a String to be base64Url encoded, adds unit tests, and updates associated existing unit tests.