-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug-auth.html
More file actions
38 lines (33 loc) · 1.07 KB
/
debug-auth.html
File metadata and controls
38 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html>
<head>
<title>Debug Authentication</title>
</head>
<body>
<h1>Debug Authentication Storage</h1>
<button onclick="checkStorage()">Check localStorage</button>
<button onclick="clearStorage()">Clear localStorage</button>
<pre id="output"></pre>
<script>
function checkStorage() {
const output = document.getElementById('output');
const storage = {};
// Check all localStorage keys
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
if (key) {
storage[key] = localStorage.getItem(key);
}
}
output.textContent = JSON.stringify(storage, null, 2);
}
function clearStorage() {
localStorage.clear();
sessionStorage.clear();
document.getElementById('output').textContent = 'Storage cleared';
}
// Auto-check on load
checkStorage();
</script>
</body>
</html>