plinth-infra/pds/trust-aglais.js
2025-02-27 09:43:51 +00:00

10 lines
392 B
JavaScript

const provider = require("@atproto/pds/dist/oauth/provider.js");
const { after } = require("@marshift/strawberry");
after(provider, "PdsOAuthProvider", (_args, provider) => {
provider.clientManager.hooks.getClientInfo = (clientId, { }) => {
if (clientId === "https://aglais.pages.dev/oauth/client-metadata.json") {
return { isFirstParty: true, isTrusted: true };
}
};
});