Skip to content

Instantly share code, notes, and snippets.

@yackermann
Last active December 24, 2018 17:57
Show Gist options
  • Save yackermann/7e237918bf508cc29ca4e7872d4c6cda to your computer and use it in GitHub Desktop.
Save yackermann/7e237918bf508cc29ca4e7872d4c6cda to your computer and use it in GitHub Desktop.
navigator.credentials.get({ 'password': true })
.then((credential) => {
if(!credential)
throw new Error('No credential found')
// sendServer(credential) // PasswordCredential {iconURL: "", name: "", password: "VeryRandomPassword123456", id: "alice", type: "password"}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment