Skip to content

Commit

Permalink
fix: improving callback handling for localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Jun 21, 2023
1 parent 85a9273 commit fd02fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/bullboard/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ passport.use(
{
clientID: env.require("GOOGLE_OAUTH_ID"),
clientSecret: env.require("GOOGLE_OAUTH_SECRET"),
callbackURL: `https://${HOST}/login/callback`,
callbackURL: `${
HOST.includes("localhost") ? "http" : "https"
}://${HOST}/login/callback`,
},
// check, that only users with the correct domain can access
function (
Expand Down

1 comment on commit fd02fed

@vercel
Copy link

@vercel vercel bot commented on fd02fed Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.