Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: ac-login uses /handle?for=sub instead of /user?from=email

The /user endpoint returned empty for some emails, leaving the
handle field null in .ac-token. Use the /handle endpoint which
takes the Auth0 sub directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -2
+2 -2
tezos/ac-login.mjs
··· 180 180 181 181 const user = await userResponse.json(); 182 182 183 - // Fetch AC handle 183 + // Fetch AC handle via /handle?for=sub 184 184 let acHandle = null; 185 185 try { 186 186 const handleRes = await fetch( 187 - `https://aesthetic.computer/user?from=${encodeURIComponent(user.email)}&withHandle=true` 187 + `https://aesthetic.computer/handle?for=${encodeURIComponent(user.sub)}` 188 188 ); 189 189 const handleData = await handleRes.json(); 190 190 if (handleData.handle) acHandle = handleData.handle;