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

Configure Feed

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

chore: update atproto client ids

+19 -7
+9 -3
src/components/output/raw/atproto/oauth.js
··· 50 50 encodeURIComponent(SCOPE) 51 51 }` 52 52 : /** @type {any} */ (import.meta).env?.ATPROTO_CLIENT_ID ?? 53 - "https://elements.diffuse.sh/oauth-client-metadata.json"; 53 + "https://elements.diffuse.sh/latest/components/output/raw/atproto/oauth-client-metadata.json"; 54 54 55 55 configureOAuth({ 56 56 metadata: { ··· 83 83 export async function login(handle) { 84 84 const location = globalThis.location; 85 85 86 - sessionStorage.setItem("oauth/callback/redirect_path", location.pathname + location.search); 86 + sessionStorage.setItem( 87 + "oauth/callback/redirect_path", 88 + location.pathname + location.search, 89 + ); 87 90 sessionStorage.setItem("oauth/pending-client", CLIENT_KEY); 88 91 89 92 const authUrl = await createAuthorizationUrl({ ··· 110 113 // so params arrive in the URL hash, not the query string) 111 114 const params = new URLSearchParams(location.hash.slice(1)); 112 115 113 - if (params.has("code") && sessionStorage.getItem("oauth/pending-client") === CLIENT_KEY) { 116 + if ( 117 + params.has("code") && 118 + sessionStorage.getItem("oauth/pending-client") === CLIENT_KEY 119 + ) { 114 120 sessionStorage.removeItem("oauth/pending-client"); 115 121 116 122 const result = await finalizeAuthorization(params);
+10 -4
src/components/supplement/rocksky/oauth.js
··· 23 23 * @import {Session} from "@atcute/oauth-browser-client" 24 24 */ 25 25 26 - export { OAuthUserAgent, getSession }; 26 + export { getSession, OAuthUserAgent }; 27 27 28 28 export const DID_STORAGE_KEY = "diffuse/supplement/rocksky/atproto/did"; 29 29 const CLIENT_KEY = "diffuse/supplement/rocksky"; ··· 45 45 encodeURIComponent(SCOPE) 46 46 }` 47 47 : /** @type {any} */ (import.meta).env?.ROCKSKY_ATPROTO_CLIENT_ID ?? 48 - "https://elements.diffuse.sh/rocksky-oauth-client-metadata.json"; 48 + "https://elements.diffuse.sh/latest/components/supplement/rocksky/oauth-client-metadata.json"; 49 49 50 50 configureOAuth({ 51 51 metadata: { client_id, redirect_uri }, ··· 73 73 * @param {string} handle 74 74 */ 75 75 export async function login(handle) { 76 - sessionStorage.setItem("oauth/callback/redirect_path", location.pathname + location.search); 76 + sessionStorage.setItem( 77 + "oauth/callback/redirect_path", 78 + location.pathname + location.search, 79 + ); 77 80 sessionStorage.setItem("oauth/pending-client", CLIENT_KEY); 78 81 79 82 const authUrl = await createAuthorizationUrl({ ··· 96 99 export async function restoreOrFinalize() { 97 100 const params = new URLSearchParams(location.hash.slice(1)); 98 101 99 - if (params.has("code") && sessionStorage.getItem("oauth/pending-client") === CLIENT_KEY) { 102 + if ( 103 + params.has("code") && 104 + sessionStorage.getItem("oauth/pending-client") === CLIENT_KEY 105 + ) { 100 106 sessionStorage.removeItem("oauth/pending-client"); 101 107 102 108 const result = await finalizeAuthorization(params);