+3
lib/oauth/client.ts
+3
lib/oauth/client.ts
···
1
import { AtprotoOAuthClient } from "@bigmoves/atproto-oauth-client";
2
import { SessionStore, StateStore } from "../storage.ts";
3
4
export const scope = [
5
"atproto",
6
"account:email",
···
44
stateStore: new StateStore(db),
45
sessionStore: new SessionStore(db),
46
didCache: undefined,
47
});
48
};
49
···
1
import { AtprotoOAuthClient } from "@bigmoves/atproto-oauth-client";
2
import { SessionStore, StateStore } from "../storage.ts";
3
4
+
const isDev = Deno.env.get("NODE_ENV") !== "production";
5
export const scope = [
6
"atproto",
7
"account:email",
···
45
stateStore: new StateStore(db),
46
sessionStore: new SessionStore(db),
47
didCache: undefined,
48
+
allowHttp: isDev,
49
+
plcDirectoryUrl: Deno.env.get("PLC_URL") ?? "https://plc.directory",
50
});
51
};
52
+2
-1
routes/api/oauth/initiate.ts
+2
-1
routes/api/oauth/initiate.ts
tests/.yarn/install-state.gz
tests/.yarn/install-state.gz
This is a binary file and will not be displayed.
+1
-1
tests/e2e/migration.test.ts
+1
-1
tests/e2e/migration.test.ts
+3
-1
tests/utils/test-env.ts
+3
-1
tests/utils/test-env.ts
···
3
*/
4
5
import { Agent } from "@atproto/api";
6
-
import { TestPds, TestPlc } from "@atproto/dev-env";
7
import { ComAtprotoServerCreateAccount } from "@atproto/api";
8
import { SMTPServer, SMTPServerAddress } from "smtp-server";
9
import * as cheerio from "cheerio";
···
171
devMode: true,
172
emailSmtpUrl: `smtp://localhost:${SMTP_PORT}`,
173
emailFromAddress: `noreply@localhost:${SMTP_PORT}`,
174
});
175
176
const targetPds = await TestPds.create({
···
181
devMode: true,
182
emailSmtpUrl: `smtp://localhost:${SMTP_PORT}`,
183
emailFromAddress: `noreply@localhost:${SMTP_PORT}`,
184
});
185
186
return {
···
3
*/
4
5
import { Agent } from "@atproto/api";
6
+
import { TestBsky, TestPds, TestPlc } from "@atproto/dev-env";
7
import { ComAtprotoServerCreateAccount } from "@atproto/api";
8
import { SMTPServer, SMTPServerAddress } from "smtp-server";
9
import * as cheerio from "cheerio";
···
171
devMode: true,
172
emailSmtpUrl: `smtp://localhost:${SMTP_PORT}`,
173
emailFromAddress: `noreply@localhost:${SMTP_PORT}`,
174
+
bskyAppViewDid: "did:web:api.bsky.app",
175
});
176
177
const targetPds = await TestPds.create({
···
182
devMode: true,
183
emailSmtpUrl: `smtp://localhost:${SMTP_PORT}`,
184
emailFromAddress: `noreply@localhost:${SMTP_PORT}`,
185
+
bskyAppViewDid: "did:web:api.bsky.app",
186
});
187
188
return {