Baseline Widely available
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The credentials
read-only property of the Navigator
interface returns the CredentialsContainer
object associated with the current document, which exposes methods to request credentials. The CredentialsContainer
interface also notifies the user agent when an interesting event occurs, such as a successful sign-in or sign-out. This interface can be used for feature detection.
A CredentialsContainer
object.
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.
}
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4