Skip to content

Commit d4f4dbf

Browse files
committed
fix: Use env variable for Google Auth callbackl URL
1 parent 989cdcf commit d4f4dbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/config/passport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ passport.use(
234234
{
235235
clientID: process.env.GOOGLE_ID,
236236
clientSecret: process.env.GOOGLE_SECRET,
237-
callbackURL: 'https://editor.p5js.org/auth/google/callback',
237+
callbackURL: `${process.env.EDITOR_URL}/auth/google/callback`,
238238
passReqToCallback: true,
239239
scope: ['openid email']
240240
},

0 commit comments

Comments
 (0)