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);
|