A decentralized music tracking and discovery platform built on AT Protocol 🎵

fix: skip profile record validation, clean up code formatting in OAuth callback and profile retrieval

+2 -3
+2 -3
apps/api/src/bsky/app.ts
··· 77 77 ? Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 365 * 1000 78 78 : Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 7, 79 79 }, 80 - env.JWT_SECRET, 80 + env.JWT_SECRET 81 81 ); 82 82 ctx.kv.set(did, token); 83 83 } catch (err) { ··· 128 128 }); 129 129 const handle = await ctx.resolver.resolveDidToHandle(did); 130 130 const profile: { handle?: string; displayName?: string; avatar?: BlobRef } = 131 - Profile.isRecord(profileRecord.value) && 132 - Profile.validateRecord(profileRecord.value).success 131 + Profile.isRecord(profileRecord.value) 133 132 ? { ...profileRecord.value, handle } 134 133 : {}; 135 134