MCPcopy Create free account
hub / github.com/error311/FileRise / isAuthedNow

Function isAuthedNow

public/js/auth.js:599–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597}
598
599async function isAuthedNow() {
600 try {
601 const r = await fetch('/api/auth/checkAuth.php', { credentials: 'include' });
602 const j = await r.json().catch(() => ({}));
603 return !!j.authenticated;
604 } catch (e) { return false; }
605}
606
607function rafTick(times = 2) {
608 return new Promise(res => {

Callers 1

submitLoginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected