← Back to release summary

Replace CredentialRequestOptions.unmediated flag with CredentialRequestOptions.mediation enum in Credential Management API

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 60)
Intent stage
None

Summary

This feature introduces an CredentialMediationRequirement enum argument to the CredentialRequestOptions of CredentialsContainer.get() that is intended to replace the currently existing boolean flag CredentialRequestOptions.unmediated. The enum will have three states ("silent", "optional", "required") with "silent" and "optional" directly mapping to the existing boolean states, "required" is a novel option.

Standards & signals

Docs: https://developers.google.com/web/updates/2017/06/credential-management-updates https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get

View on chromestatus.com