upgrade pds
This commit is contained in:
parent
c622413804
commit
8e1513f1cf
3 changed files with 1150 additions and 1218 deletions
|
@ -6,11 +6,11 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@atproto/common": "^0.4.6",
|
"@atproto/common": "^0.4.8",
|
||||||
"@atproto/pds": "0.4.90",
|
"@atproto/pds": "^0.4.104",
|
||||||
"@marshift/strawberry": "^1.5.1",
|
"@marshift/strawberry": "^1.5.1",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"express": "^4.21.1"
|
"express": "^4.21.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^5.0.0"
|
"@types/express": "^5.0.0"
|
||||||
|
|
2353
pds/pnpm-lock.yaml
2353
pds/pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -2,10 +2,9 @@ const provider = require("@atproto/pds/dist/oauth/provider.js");
|
||||||
const { after } = require("@marshift/strawberry");
|
const { after } = require("@marshift/strawberry");
|
||||||
|
|
||||||
after(provider, "PdsOAuthProvider", (_args, provider) => {
|
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") {
|
if (clientId === "https://aglais.pages.dev/oauth/client-metadata.json") {
|
||||||
info.isFirstParty = true;
|
return { isFirstParty: true, isTrusted: true };
|
||||||
info.isTrusted = true;
|
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue