Getting ACCESS DENIED in route.js as I try to sign in using Google and see my results in MongoDB
Unanswered
Asian black bear posted this in #help-forum
Original message was deleted.
15 Replies
Australian Freshwater Crocodile
Have u tried to check what is in your env variables ?
@Australian Freshwater Crocodile Have u tried to check what is in your env variables ?
Asian black bear
I did the URIs and everything and I'm sure they've all matched
I've set the MONGODB_URI as admin as well
Australian Freshwater Crocodile
I see but I mean in console.log ?
cuz I've been facing with that problem too many times when you tries to create custom env variable
cuz I've been facing with that problem too many times when you tries to create custom env variable
@Asian black bear I've set the MONGODB_URI as admin as well
Australian Freshwater Crocodile
make sense yeah
have u tried this one ?
https://www.coderrocketfuel.com/article/add-environment-variables-to-a-next-js-application
have u tried this one ?
https://www.coderrocketfuel.com/article/add-environment-variables-to-a-next-js-application
@Australian Freshwater Crocodile I see but I mean in console.log ?
cuz I've been facing with that problem too many times when you tries to create custom env variable
Asian black bear
Which should I console.log? Also I'll check out that link you sent
Australian Freshwater Crocodile
just first one which throws an error or if its whole process then var by var I guess
Asian black bear
It just keeps throwing out the errors I stated above, I'll try and keep looking
Australian Freshwater Crocodile
Still throws even in module.exports ?
Asian black bear
Australian Freshwater Crocodile
So now you are on another err, aren't u ?
@Australian Freshwater Crocodile So now you are on another err, aren't u ?
Asian black bear
Still the same, it just doesn't want to log in through google for some reason
Asian black bear
Bump
Australian Freshwater Crocodile
Any results ?
@Australian Freshwater Crocodile Any results ?
Asian black bear
unfortunately, no. I began another one instead for the meantime.