There was an error while loading. Please reload this page.
1 parent 2fb0043 commit deed0eaCopy full SHA for deed0ea
1 file changed
lib/oauth/client.ts
@@ -1,6 +1,7 @@
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",
@@ -44,7 +45,7 @@ export const createClient = (db: Deno.Kv) => {
44
45
stateStore: new StateStore(db),
46
sessionStore: new SessionStore(db),
47
didCache: undefined,
- allowHttp: Deno.env.get("NODE_ENV") !== "production",
48
+ allowHttp: isDev,
49
plcDirectoryUrl: Deno.env.get("PLC_URL") ?? "https://plc.directory",
50
});
51
};
0 commit comments