forked from kyoto-u/comfortable-sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclear-auth.js
More file actions
28 lines (23 loc) · 865 Bytes
/
clear-auth.js
File metadata and controls
28 lines (23 loc) · 865 Bytes
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
// Authentication troubleshooting script
// Run this in Chrome DevTools Console to clear all authentication data
console.log('🧹 Clearing all authentication data...');
// Clear Chrome Identity cached tokens
chrome.identity.getAuthToken({interactive: false}, (token) => {
if (token) {
console.log('🗑️ Removing cached token:', token.substring(0, 10) + '...');
chrome.identity.removeCachedAuthToken({token: token}, () => {
console.log('✅ Cached token removed');
});
} else {
console.log('ℹ️ No cached token found');
}
});
// Clear extension storage
chrome.storage.local.clear(() => {
console.log('✅ Extension storage cleared');
});
// Clear sync storage as well
chrome.storage.sync.clear(() => {
console.log('✅ Sync storage cleared');
});
console.log('🔄 Please reload the extension after running this script');