plinth-infra/pds/trust-aglais.js

11 lines
409 B
JavaScript

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