When I log in to DropBox, I get approved and receive my auth token. But, the token is too short!
I should receive : "################################-###############################"
but I get : "###################-#######################"
This returns a "invalid_access_token" error.
Below is my layout for passport-dropbox-oauth2:
app.get('/dropboxLogin', passport.authenticate('dropbox-oauth2'));
app.get('/auth/dropbox/callback',
passport.authenticate('dropbox-oauth2', { failureRedirect: '/' }),
function(req, res)
{
// Successful authentication, redirect home.
res.render('index', { title:'Dropbox Login', body:res});
});
app.get('/loggedIn', function(req,res)
{
//have bearer token
let token = req.query.code;
console.log(req.query);
res.redirect('/Callback/?token='+token);
});