This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
// --- 0) extract the auth token and personal repository ID | |
let storage = JSON.parse(localStorage.getItem('BSKY_STORAGE')); | |
let token = storage.session.currentAccount.accessJwt; | |
let did = storage.session.currentAccount.did; | |
console.log('🔑 found token:', token.slice(0, 20) + '…'); | |
let headers = { | |
'Authorization': `Bearer ${token}`, | |
'Content-Type': 'application/json', |