Slide 38
Slide 38 text
Credential Management API @ I/O: https://goo.gl/FbrO5x
function signInToYourApplication(c) {
fetch("/signin", {
"method": "POST", "credentials": c
})
.then(r => {
if (r.status == 200) {
renderSignedInExperience(r);
// or:
window.location = "/signedin";
} else {
renderUsefulErrorMessage();
}
});
}