-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credential Management API: get resolves to null #6809
Comments
This is fixed in git and will be available in the next nightly build. |
NWJS Version : 0.34.0 SDK Thank you for fixing this issue, but it works for local files only, not for remote ones. How to reproducePage
For this
But for this one, it doesn´t work:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Same here, it logs null const credential = new PasswordCredential({
id: auth.username,
password: auth.password,
})
navigator.credentials.store(credential).then(() => {
console.info("Credential stored in the user agent's credential manager.", credential); // logs credential
navigator.credentials.get({
password: true,
mediation: 'silent'
})
.then(c => console.log(c)); // logs null |
NWJS Version : 0.33.3 SDK
Operating System : Win 7 x64
Expected behavior
I would like to use Credential Management API for auto sign-in feature in my app simply like this:
var creds = new PasswordCredential({ id: "username", password: "password" }); navigator.credentials.store(creds);
navigator.credentials.get({password: true, mediation: 'silent'}).then(function (creds) { ... });
Actual behavior
Credentials are successfully stored, but calling
navigator.credentials.get
always resolves tonull
.How to reproduce
Try this code:
Thank you.
The text was updated successfully, but these errors were encountered: