FederatedCredential()
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
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
var myCredential = new FederatedCredential(init)
Parameters
- init
-
Options are:
-
provider
: AUSVString
; identifying the credential provider.
-
Specifications
Specification |
---|
Credential Management Level 1 (Credential Management 1) # dom-federatedcredential-federatedcredential |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
FederatedCredential |
51 |
79 |
No |
No |
38 |
No |
51 |
51 |
No |
41 |
No |
5.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential/FederatedCredential