aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net/src/auth.js
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-24 12:58:49 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-24 12:58:49 +0100
commite2066f51523ecba0f1991edd0c2b94f8f4cd1820 (patch)
tree8aedfff6c5d321d612278b40002a8e8037105b08 /communities/red-right-hand/174bg.net/src/auth.js
parent7bcfcc53b2dcbfb6efc82524f7bd078b716fd27b (diff)
downloadunnamed-group-e2066f51523ecba0f1991edd0c2b94f8f4cd1820.tar
unnamed-group-e2066f51523ecba0f1991edd0c2b94f8f4cd1820.tar.gz
unnamed-group-e2066f51523ecba0f1991edd0c2b94f8f4cd1820.tar.bz2
unnamed-group-e2066f51523ecba0f1991edd0c2b94f8f4cd1820.tar.xz
unnamed-group-e2066f51523ecba0f1991edd0c2b94f8f4cd1820.zip
shorten community subdirs
Diffstat (limited to 'communities/red-right-hand/174bg.net/src/auth.js')
-rw-r--r--communities/red-right-hand/174bg.net/src/auth.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/communities/red-right-hand/174bg.net/src/auth.js b/communities/red-right-hand/174bg.net/src/auth.js
deleted file mode 100644
index 4fa8408..0000000
--- a/communities/red-right-hand/174bg.net/src/auth.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { betterAuth } from "better-auth";
-import { Pool } from "pg";
-
-const postgresUser = process.env.POSTGRES_USER || "postgres";
-const postgresPassword = process.env.POSTGRES_PASSWORD || "postgres";
-const postgresHost = process.env.POSTGRES_HOST || "postgres";
-const postgresPort = process.env.POSTGRES_PORT || 5432;
-const postgresDatabase = process.env.POSTGRES_DB || "postgres";
-
-export const auth = betterAuth({
- baseURL: process.env.BETTER_AUTH_URL,
- secret: process.env.BETTER_AUTH_SECRET,
- database: new Pool({
- connectionString: `postgresql://${postgresUser}:${postgresPassword}@${postgresHost}:${postgresPort}/${postgresDatabase}`,
- }),
- socialProviders: {
- discord: {
- clientId: process.env.DISCORD_CLIENT_ID,
- clientSecret: process.env.DISCORD_CLIENT_SECRET,
- scope: ["identify", "email", "guilds", "guilds.join"],
- },
- },
-});