Closed SS88UK closed 1 month ago
Hi @SS88UK ,
The issue you're encountering may be due to missing keys or an inability to read the environment variables.
Please ensure you have added the following entries to your environment configuration:
GOOGLE_CLIENT_ID="GOOGLE_CLIENT_ID_HERE"
GOOGLE_CLIENT_SECRET="GOOGLE_CLIENT_SECRET_HERE"
If the problem persists, you can manually update the keys in the file worklenz-backend/src/passport/passport-strategies/passport-google.ts at line 67.
export default new GoogleStrategy.Strategy({
clientID: "GOOGLE_CLIENT_ID_HERE",
clientSecret: "GOOGLE_CLIENT_SECRET_HERE",
callbackURL: process.env.GOOGLE_CALLBACK_URL as string,
passReqToCallback: true
},
(req, _accessToken, _refreshToken, profile, done) => void handleGoogleLogin(req, _accessToken, _refreshToken, profile, done));
At least, this should help you set up the project correctly.
@Nadeera3784 Understood thank you!
Any help is appreciated!