@@ -31,6 +31,11 @@ typedef CredentialMediationRequirement = String;
31
31
/// - [PasswordCredential]
32
32
/// - [PublicKeyCredential]
33
33
/// - [OTPCredential]
34
+ ///
35
+ /// ---
36
+ ///
37
+ /// API documentation sourced from
38
+ /// [MDN Web Docs] (https://developer.mozilla.org/en-US/docs/Web/API/Credential).
34
39
extension type Credential ._(JSObject _) implements JSObject {
35
40
external static JSPromise <JSBoolean > isConditionalMediationAvailable ();
36
41
external String get id;
@@ -42,6 +47,11 @@ extension type Credential._(JSObject _) implements JSObject {
42
47
/// exposes methods to request credentials and notify the user agent when events
43
48
/// such as successful sign in or sign out happen. This interface is accessible
44
49
/// from [Navigator.credentials] .
50
+ ///
51
+ /// ---
52
+ ///
53
+ /// API documentation sourced from
54
+ /// [MDN Web Docs] (https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer).
45
55
extension type CredentialsContainer ._(JSObject _) implements JSObject {
46
56
/// The **`get()` ** method of the [CredentialsContainer] interface returns a
47
57
/// `Promise` that fulfills with a single credential instance that matches the
@@ -177,6 +187,11 @@ extension type CredentialCreationOptions._(JSObject _) implements JSObject {
177
187
///
178
188
/// > **Note:** This interface is restricted to top-level contexts and cannot be
179
189
/// > used from an `iframe` .
190
+ ///
191
+ /// ---
192
+ ///
193
+ /// API documentation sourced from
194
+ /// [MDN Web Docs] (https://developer.mozilla.org/en-US/docs/Web/API/PasswordCredential).
180
195
extension type PasswordCredential ._(JSObject _)
181
196
implements Credential , JSObject {
182
197
external factory PasswordCredential (JSObject dataOrForm);
@@ -220,6 +235,11 @@ extension type PasswordCredentialData._(JSObject _)
220
235
///
221
236
/// In browsers that support it, an instance of this interface may be passed in
222
237
/// the `credential` member of the `init` object for global [fetch] .
238
+ ///
239
+ /// ---
240
+ ///
241
+ /// API documentation sourced from
242
+ /// [MDN Web Docs] (https://developer.mozilla.org/en-US/docs/Web/API/FederatedCredential).
223
243
extension type FederatedCredential ._(JSObject _)
224
244
implements Credential , JSObject {
225
245
external factory FederatedCredential (FederatedCredentialInit data);
0 commit comments