What am I missing here? I've been through all the threads here and googled it for a while:
Whitelisted my machine's IP under the apps advanced settings.
Double-checked the token and when it's expired I can see that error on the console.
Double checked client + secret + origins in the app
Tried things with a google oauth token and I get 'unauthorized' as intended.
But when all is good and I send a request with that good token either from Postman or from my frontend I get Internal Server Error telling me User is not defined at that line. What am I missing?
What am I missing here? I've been through all the threads here and googled it for a while:
But when all is good and I send a request with that good token either from Postman or from my frontend I get Internal Server Error telling me User is not defined at that line. What am I missing?
Route code:
All other code without imports:
and I'm importing the npm package exactly as in the docs:
const FacebookTokenStrategy = require('passport-facebook-token');
I'm all out of ideas on this one.