upgrade pds

This commit is contained in:
Charlotte Som 2025-02-27 09:43:51 +00:00
parent c622413804
commit 8e1513f1cf
3 changed files with 1150 additions and 1218 deletions

View file

@ -6,11 +6,11 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"@atproto/common": "^0.4.6",
"@atproto/pds": "0.4.90",
"@atproto/common": "^0.4.8",
"@atproto/pds": "^0.4.104",
"@marshift/strawberry": "^1.5.1",
"dotenv": "^16.4.5",
"express": "^4.21.1"
"dotenv": "^16.4.7",
"express": "^4.21.2"
},
"devDependencies": {
"@types/express": "^5.0.0"

File diff suppressed because it is too large Load diff

View file

@ -2,10 +2,9 @@ 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) => {
provider.clientManager.hooks.getClientInfo = (clientId, { }) => {
if (clientId === "https://aglais.pages.dev/oauth/client-metadata.json") {
info.isFirstParty = true;
info.isTrusted = true;
return { isFirstParty: true, isTrusted: true };
}
});
};
});