Skip to content

Commit

Permalink
fix: fix oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Dec 4, 2024
1 parent 95eb3c9 commit 1816df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/backend/src/modules/auth/oauth/github.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const GITHUB_PROVIDER = Symbol.for("GITHUB_PROVIDER")

container.register(GITHUB_PROVIDER, {
useFactory: instanceCachingFactory(() => {
return new GitHub(env.GITHUB_CLIENT_ID!, env.GITHUB_CLIENT_SECRET!)
const redirectURL = new URL("/login/github/callback", env.UNDB_BASE_URL)
return new GitHub(env.GITHUB_CLIENT_ID!, env.GITHUB_CLIENT_SECRET!, redirectURL.toString())
}),
})

Expand Down

0 comments on commit 1816df5

Please sign in to comment.