with the credential management API
James Allardice
@james_allardice #websc
@james_allardice #websc
@james_allardice #websc
@james_allardice #websc
You can sync passwords across devices.
@james_allardice #websc
Federated identity providers
@james_allardice #websc
@james_allardice #websc
Assertion about an entity which enables a trust decision
@james_allardice #websc
autocomplete
autocomplete="username"
autocomplete="current-password"
autocomplete="new-password"
Content-Type / Accept
res.format({
html: () => { /* ... */ },
json: () => { /* ... */ },
});
fetch
fetch('/', {
method: 'POST',
headers: {
Accept: 'application/json',
},
credentials: 'include',
body: formData,
})
.then((response) => response.json())
.then((json) => { /* ... */ });
navigator.credentials
@james_allardice #websc
@james_allardice #websc
const credential = new PasswordCredential(form);
navigator.credentials.store(credentials)
.then(() => { /* ... */ });
@james_allardice #websc
PasswordCredential
// Ask the browser for the stored password credential.
navigator.credentials.get({
password: true,
})
.then((credentials) => {
// Make request.
});
@james_allardice #websc
// Prevent automatic logins for the rest of the session.
navigator.credentials.preventSilentAccess();
@james_allardice #websc
@james_allardice #websc