We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 578bcb2 commit 932055cCopy full SHA for 932055c
demos/credential-management/index.html
@@ -73,10 +73,10 @@ <h2>Sign Up!</h2>
73
document.querySelector('#signup').addEventListener('submit', function (e) {
74
if (navigator.credentials) {
75
console.log("Creating credentials!");
76
- var c = new PasswordCredential(
77
- document.querySelector('#username-signup').value,
78
- document.querySelector('#password-signup').value
79
- );
+ var c = new PasswordCredential({
+ id: document.querySelector('#username-signup').value,
+ password: document.querySelector('#password-signup').value
+ });
80
navigator.credentials.store(c).then(function () {
81
console.log("Stored credential!");
82
});
0 commit comments