if ("credentials" in navigator) {
navigator.credentials.get({ password: true }).then((creds) => {
// Do something with the credentials.
});
} else {
// Handle sign-in the way you did before.
}Navigator: credentials property / notebook
Navigator: credentials property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.