web/api: re-request session if server claims it's invalid

This commit is contained in:
jj
2025-03-30 17:41:28 +00:00
parent 1f768df4ec
commit 59665af44a
2 changed files with 28 additions and 4 deletions

View File

@@ -62,3 +62,5 @@ export const getSession = async () => {
}
return newSession;
}
export const resetSession = () => cache = undefined;