a tool for shared writing and social publishing

add oauth scopes

+4 -2
+2 -1
app/api/oauth/[route]/oauth-metadata.ts
··· 7 ? "http://localhost:3000" 8 : "https://leaflet.pub"; 9 10 - const scope = "atproto transition:generic transition:email"; 11 const localconfig: OAuthClientMetadataInput = { 12 client_id: `http://localhost/?redirect_uri=${encodeURI(`http://127.0.0.1:3000/api/oauth/callback`)}&scope=${encodeURIComponent(scope)}`, 13 client_name: `Leaflet`,
··· 7 ? "http://localhost:3000" 8 : "https://leaflet.pub"; 9 10 + const scope = 11 + "atproto transition:generic transition:email include:pub.leaflet.authFullPermissions include:site.standard.authFull include:app.bsky.authCreatePosts"; 12 const localconfig: OAuthClientMetadataInput = { 13 client_id: `http://localhost/?redirect_uri=${encodeURI(`http://127.0.0.1:3000/api/oauth/callback`)}&scope=${encodeURIComponent(scope)}`, 14 client_name: `Leaflet`,
+2 -1
app/api/oauth/[route]/route.ts
··· 42 const ac = new AbortController(); 43 44 const url = await client.authorize(handle || "https://bsky.social", { 45 - scope: "atproto transition:generic transition:email", 46 signal: ac.signal, 47 state: JSON.stringify(state), 48 });
··· 42 const ac = new AbortController(); 43 44 const url = await client.authorize(handle || "https://bsky.social", { 45 + scope: 46 + "atproto transition:email include:pub.leaflet.authFullPermissions include:site.standard.authFull include:app.bsky.authCreatePosts", 47 signal: ac.signal, 48 state: JSON.stringify(state), 49 });