Skip to content

Commit 8c98fe1

Browse files
committed
Drop repo:community.lexicon.preference.ai from OAuth scope
PDS auth servers don't list repo:<NSID> scopes in scopes_supported and the bskyweb OAuth metadata handler hardcodes the legacy scope set, so requesting the granular scope produces invalid_scope at login. Reverting to the previously-shipping scope string. The AI preferences feature continues to work via transition:generic.
1 parent cfe26e4 commit 8c98fe1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bskyweb/static/oauth-client-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"redirect_uris": [
66
"https://blacksky.community/auth/web/callback"
77
],
8-
"scope": "atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage repo:community.lexicon.preference.ai",
8+
"scope": "atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage",
99
"token_endpoint_auth_method": "none",
1010
"response_types": [
1111
"code"

src/state/session/oauth-web-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const OAUTH_CLIENT_NAME: string =
1515
process.env.EXPO_PUBLIC_OAUTH_CLIENT_NAME || 'Blacksky Community'
1616

1717
const OAUTH_SCOPE =
18-
'atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage repo:community.lexicon.preference.ai'
18+
'atproto transition:generic transition:email transition:chat.bsky identity:handle account:email?action=manage account:status?action=manage'
1919

2020
function isLoopback() {
2121
if (typeof window === 'undefined') return false

0 commit comments

Comments
 (0)