Credential Management
Checking compatibility...
Enables websites to interact with user credentials for authentication, supporting password, federated identity, one-time passwords (OTP), and Web Authentication methods.
Security Restrictions
The Credential Management API requires a secure context (HTTPS) and has varying levels of browser support. Chrome and Edge offer the most complete implementation. In these demos, credentials are isolated to each example's context and will not persist between different code snippets or page reloads, unlike in real applications where they would be available across the entire origin.
Create New Credential
This example shows how to save a username and password to the browser's password manager, so users won't need to type them again next time they visit your site.
=
=
=
=
=
=
Output
Click Run to see output...
Get Stored Credentials
This example demonstrates how to retrieve saved login information from the browser, letting users sign in with a single click instead of typing their credentials again.
=
=
=
=
=
=
Output
Click Run to see output...