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: atproto redirect uri

+16 -4
+8 -2
src/components/output/raw/atproto/oauth.js
··· 50 50 : /** @type {any} */ (import.meta).env?.ATPROTO_CLIENT_ID ?? 51 51 "https://elements.diffuse.sh/latest/components/output/raw/atproto/oauth-client-metadata.json"; 52 52 53 - configureOAuth({ 53 + const OAUTH_CONFIG = { 54 54 metadata: { 55 55 client_id, 56 56 redirect_uri, ··· 67 67 }, 68 68 }), 69 69 }), 70 - }); 70 + }; 71 + 72 + configureOAuth(OAUTH_CONFIG); 71 73 72 74 // LOGIN 73 75 // ===== ··· 79 81 * @param {string} handle 80 82 */ 81 83 export async function login(handle) { 84 + configureOAuth(OAUTH_CONFIG); 85 + 82 86 sessionStorage.setItem( 83 87 "oauth/callback/redirect_path", 84 88 location.pathname + location.search, ··· 104 108 * @returns {Promise<Session | null>} 105 109 */ 106 110 export async function restoreOrFinalize() { 111 + configureOAuth(OAUTH_CONFIG); 112 + 107 113 const location = globalThis.location; 108 114 109 115 // Check for OAuth callback parameters (the library uses response_mode=fragment,
+8 -2
src/components/supplement/rocksky/oauth.js
··· 48 48 : /** @type {any} */ (import.meta).env?.ROCKSKY_ATPROTO_CLIENT_ID ?? 49 49 "https://elements.diffuse.sh/latest/components/supplement/rocksky/oauth-client-metadata.json"; 50 50 51 - configureOAuth({ 51 + const OAUTH_CONFIG = { 52 52 metadata: { client_id, redirect_uri }, 53 53 storageName: "diffuse/supplement/rocksky/atcute/oauth", 54 54 identityResolver: new LocalActorResolver({ ··· 62 62 }, 63 63 }), 64 64 }), 65 - }); 65 + }; 66 + 67 + configureOAuth(OAUTH_CONFIG); 66 68 67 69 // LOGIN 68 70 // ===== ··· 74 76 * @param {string} handle 75 77 */ 76 78 export async function login(handle) { 79 + configureOAuth(OAUTH_CONFIG); 80 + 77 81 sessionStorage.setItem( 78 82 "oauth/callback/redirect_path", 79 83 location.pathname + location.search, ··· 99 103 * @returns {Promise<Session | null>} 100 104 */ 101 105 export async function restoreOrFinalize() { 106 + configureOAuth(OAUTH_CONFIG); 107 + 102 108 const params = new URLSearchParams(location.hash.slice(1)); 103 109 104 110 if (