FederatedCredential: FederatedCredential() constructor

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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