mozilla/for-firefox

Firefox returning "TypeError: CredentialsContainer.get: Missing required 'challenge' member of PublicKeyCredentialRequestOptions."

Opened this issue · 0 comments

I have below code where I am trying to retrieve the stored username and password on the site. This works completely alright in Chrome popping up options for me to select from the list of credentials but fire fox returns "TypeError: CredentialsContainer.get: Missing required 'challenge' member of PublicKeyCredentialRequestOptions." when I am not even requesting for the public-key signature.

const param: CredentialRequestOptions = {
password: true,
mediation: 'required',
};
navigator.credentials.get(param);

Any idea what am I missing?