MCPcopy Create free account
hub / github.com/BruceDevices/firmware / handleAuthError

Function handleAuthError

embedded_resources/web_interface/index.js:120–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118};
119
120function handleAuthError() {
121 if (
122 confirm(
123 "Session expired or unauthorized. Would you like to go to the login page?",
124 )
125 ) {
126 window.location.href = "/";
127 } else {
128 Dialog.loading.hide();
129 }
130}
131
132async function requestGet(url, data) {
133 return new Promise((resolve, reject) => {

Callers 2

requestGetFunction · 0.85
requestPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected