Last active
February 28, 2020 21:21
-
-
Save oreoshake/c22f24d19d7b87d4a7979468b64c84d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
creds = new PasswordCredential({id: username, password: "foo"}) | |
await navigator.credentials.store(creds) | |
// ... then | |
navigator.credentials.get({ | |
password: true, | |
mediation: "optional", | |
id: username, // no prompt or prompt with one user | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@oreoshake