Hacker News new | ask | show | jobs
by schindlabua 67 days ago
parse json?

const x = await fetch(...); await x.json();

"intercept" code that runs before every request?

const withAuth = (res, options) => fetch(res, { ... do stuff here });