implements single URL archiving

This commit is contained in:
msramalho
2024-10-30 15:58:57 +00:00
parent bf151ff92e
commit 42fa376f7d
12 changed files with 594 additions and 59 deletions

View File

@@ -430,6 +430,7 @@ export default createStore({
if (!state.access_token) return true;
try {
const response = await fetch(`https://oauth2.googleapis.com/tokeninfo?access_token=${state.access_token}`);
if (response.status !== 200) return true;
const data = await response.json();
if (data.expires_in > 0) return false;
} catch (error) {