A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

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

fix: forgot an old atproto scope

+6 -6
+6 -6
src/components/output/raw/atproto/oauth.js
··· 1 1 import { configureOAuth } from "@atcute/oauth-browser-client"; 2 + import metadata from "../../../../oauth-client-metadata.json" with { 3 + type: "json", 4 + }; 2 5 3 6 import { 4 7 CompositeDidDocumentResolver, ··· 23 26 */ 24 27 25 28 const STORAGE_KEY = "diffuse/output/raw/atproto/did"; 29 + const SCOPE = metadata.scope; 26 30 27 31 // CONFIGURE 28 32 // ========= ··· 39 43 client_id: redirect_uri.startsWith("http://127.0.0.1") 40 44 ? `http://localhost/?redirect_uri=${ 41 45 encodeURIComponent(redirect_uri) 42 - }&scope=${ 43 - encodeURIComponent( 44 - "atproto repo?collection=sh.diffuse.output.facet&collection=sh.diffuse.output.playlist&collection=sh.diffuse.output.theme&collection=sh.diffuse.output.track", 45 - ) 46 - }` 46 + }&scope=${encodeURIComponent(SCOPE)}` 47 47 : /** @type {any} */ (import.meta).env?.ATPROTO_CLIENT_ID ?? 48 48 "https://elements.diffuse.sh/oauth-client-metadata.json", 49 49 redirect_uri, ··· 81 81 82 82 const authUrl = await createAuthorizationUrl({ 83 83 target: { type: "account", identifier: /** @type {any} */ (handle) }, 84 - scope: "atproto transition:generic", 84 + scope: SCOPE, 85 85 }); 86 86 87 87 location.assign(authUrl.toString());