FederatedCredential: FederatedCredential() constructor
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The FederatedCredential()
constructor creates a new FederatedCredential
object. In
supporting browsers, an instance of this class may be passed the credential
received from the init
object for global fetch()
.
Syntax
js
new FederatedCredential(init)
Parameters
init
-
Options are:
provider
-
A string; identifying the credential provider.
Specifications
Specification |
---|
Credential Management Level 1 # dom-federatedcredential-federatedcredential |
Browser compatibility
BCD tables only load in the browser