Skip to content

Instantly share code, notes, and snippets.

@oreoshake
Last active February 28, 2020 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oreoshake/c22f24d19d7b87d4a7979468b64c84d9 to your computer and use it in GitHub Desktop.
Save oreoshake/c22f24d19d7b87d4a7979468b64c84d9 to your computer and use it in GitHub Desktop.
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
})
@oreoshake
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment