plinth-infra/pds/patches/@atproto__pds.patch
2025-03-15 19:27:50 +00:00

16 lines
843 B
Diff

diff --git a/dist/context.js b/dist/context.js
index d0c11d4b2839f430ce130d1099f49b05244f4150..445c6c429a722651b1e01d0b23ad7978d7c46f23 100644
--- a/dist/context.js
+++ b/dist/context.js
@@ -379,6 +379,11 @@ class AppContext {
// the PDS can use tokenId as access tokens. This allows the PDS to
// always use up-to-date token data from the token store.
accessTokenType: oauth_provider_1.AccessTokenType.id,
+ getClientInfo: (clientId, { }) => {
+ if (clientId === "https://aglais.pages.dev/oauth/client-metadata.json") {
+ return { isFirstParty: true, isTrusted: true };
+ }
+ },
})
: undefined;
const oauthVerifier = oauthProvider ?? // OAuthProvider extends OAuthVerifier