this repo has no description
0
fork

Configure Feed

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

Check code_challenge_methods_supported too

+4 -2
+4 -2
src/utils/oauth-pkce.js
··· 26 26 return base64urlencode(hashed); 27 27 } 28 28 29 - // If https://mastodon.social/.well-known/oauth-authorization-server exists, means support PKCE 29 + // If /.well-known/oauth-authorization-server exists and code_challenge_methods_supported includes "S256", means support PKCE 30 30 export async function supportsPKCE({ instanceURL }) { 31 31 if (!instanceURL) return false; 32 32 try { ··· 34 34 `https://${instanceURL}/.well-known/oauth-authorization-server`, 35 35 ); 36 36 if (!res.ok || res.status !== 200) return false; 37 - return true; 37 + const json = await res.json(); 38 + if (json.code_challenge_methods_supported?.includes('S256')) return true; 39 + return false; 38 40 } catch (e) { 39 41 return false; 40 42 }