summary refs log tree commit diff
path: root/src/connections/GitHub/index.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2022-12-22 21:15:38 -0500
committerPuyodead1 <puyodead@proton.me>2023-03-18 19:26:14 -0400
commitd12751006e98ef11f3bec8f45fd50d91c2cb4a10 (patch)
tree9bc66f2e5f918d414459e344ea2f8db1bca4fc72 /src/connections/GitHub/index.ts
parentWIP Discord connection (diff)
downloadserver-d12751006e98ef11f3bec8f45fd50d91c2cb4a10.tar.xz
add epic games connection
Diffstat (limited to '')
-rw-r--r--src/connections/GitHub/index.ts13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/connections/GitHub/index.ts b/src/connections/GitHub/index.ts
index fc44ff9d..5f255e66 100644
--- a/src/connections/GitHub/index.ts
+++ b/src/connections/GitHub/index.ts
@@ -1,7 +1,12 @@
+import {
+	Config,
+	ConnectedAccount,
+	ConnectionCallbackSchema,
+	ConnectionLoader,
+	DiscordApiErrors,
+} from "@fosscord/util";
 import fetch from "node-fetch";
-import { Config, ConnectedAccount, ConnectionCallbackSchema, DiscordApiErrors } from "../../util";
 import Connection from "../../util/connections/Connection";
-import { ConnectionLoader } from "../../util/connections/ConnectionLoader";
 import { GitHubSettings } from "./GitHubSettings";
 
 interface OAuthTokenResponse {
@@ -89,7 +94,9 @@ export default class GitHubConnection extends Connection {
 		}).then((res) => res.json());
 	}
 
-	async handleCallback(params: ConnectionCallbackSchema): Promise<ConnectedAccount | null> {
+	async handleCallback(
+		params: ConnectionCallbackSchema,
+	): Promise<ConnectedAccount | null> {
 		const userId = this.getUserId(params.state);
 		const token = await this.exchangeCode(params.state, params.code!);
 		const userInfo = await this.getUser(token);