Skip to content

Commit

Permalink
feat: github should redirect based on base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Apr 16, 2024
1 parent c4ad7a1 commit 9b4910e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
5 changes: 4 additions & 1 deletion studio/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export type Provider = ObjectValues<typeof PROVIDER>;

export const github = new GitHub(
env.GITHUB_CLIENT_ID ?? "",
env.GITHUB_CLIENT_SECRET ?? ""
env.GITHUB_CLIENT_SECRET ?? "",
{
redirectURI: `${env.BASE_URL}/login/github/callback`,
}
);

export const google = new Google(
Expand Down
28 changes: 0 additions & 28 deletions studio/src/lib/internal-pubsub.ts

This file was deleted.

0 comments on commit 9b4910e

Please sign in to comment.