diff --git a/js/bluesky.js b/js/bluesky.js index 4eba254..5a1ae2b 100644 --- a/js/bluesky.js +++ b/js/bluesky.js @@ -127,7 +127,13 @@ class BlueskyService { await this.auth.signIn(handle); } catch (error) { console.error('[Bluesky] Sign in failed:', error); - this.ui.updateLoginState(false, `Sign in failed: ${error.message || 'Please try again'}`); + + // Check for invalid_client_metadata error + if (error.message && error.message.includes('invalid_client_metadata')) { + this.ui.updateLoginState(false, 'Bluesky\'s authentication service appears to be down, as it\'s returning the dreaded "invalid_client_metadata" error. Please try again in a few minutes.'); + } else { + this.ui.updateLoginState(false, `Sign in failed: ${error.message || 'Please try again'}`); + } } }