Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
pushing changes to github support
Browse files Browse the repository at this point in the history
  • Loading branch information
r00tz committed Nov 28, 2023
1 parent b1e2073 commit 3b5fb33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/github/server/auth/github.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import passport from "@outlinewiki/koa-passport";
import type { Context } from "koa";
import Router from "koa-router";
import { capitalize } from "lodash";
import capitalize from "lodash/capitalize";
import { Profile } from "passport";
import { Strategy as GitHubStrategy } from "passport-github2";
import { slugifyDomain } from "@shared/utils/domains";
Expand Down Expand Up @@ -50,7 +50,7 @@ if (env.GITHUB_CLIENT_ID && env.GITHUB_CLIENT_SECRET) {
ctx: Context,
accessToken: string,
refreshToken: string,
params: {},
params: { expires_in: number },
profile: GitHubProfile,
done: (
err: Error | null,
Expand Down Expand Up @@ -101,6 +101,7 @@ if (env.GITHUB_CLIENT_ID && env.GITHUB_CLIENT_SECRET) {
providerId: profile.id,
accessToken,
refreshToken,
expiresIn: params.expires_in,
scopes,
},
});
Expand Down

0 comments on commit 3b5fb33

Please sign in to comment.