(username)
| 72 | return json; |
| 73 | } |
| 74 | export async function getUidFromUsername(username) { |
| 75 | let json = await getInstaUserInfo(username); |
| 76 | console.log(json); |
| 77 | let firstUser = json?.users[0]?.user || {}; |
| 78 | if (firstUser.username != username) return null; |
| 79 | return firstUser.pk; |
| 80 | } |
| 81 | export function getCrftoken() { |
| 82 | try { |
| 83 | return document.cookie |
no test coverage detected