Credential: type property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Credential Management API")}}{{SecureContext_Header}}
The **type** read-only property of the {{domxref("Credential")}} interface returns a string containing the credential's type. Valid values are password, federated, public-key, identity and otp.
Value
A string contains a credential's given name.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}