Open webnoob opened 6 years ago
Ok, I've found out what was causing this but still not sure why.
I actually had this in another area of code in my node server app:
const superloginConfig = require('../superloginClient');
var SuperLogin = require('superlogin');
var superlogin = new SuperLogin(superloginConfig);
It wasn't being used but it seems that including it again it was causing the unauthorized message.
What would cause this to happen?
Using Postman, I'm POSTing to
http://localhost:4000/auth/login?username=test@test.com&password=test
which returns a valid password and tokenI then make a GET request to
http://localhost:4000/auth/session
setting the Authorization Bearer Token totherientortackledgedeati:a76e3a98845b67f533f25070502a12cca1c97163
but I get the response unauthorized.What am I doing wrong? From what I can see my example is inline with the demo example in the docs.
My server file is like so:
and my config