add data to UnauthorizedError so that more information can be returned to client
This commit is contained in:
@ -16,7 +16,8 @@ describe('authorizer', function () {
|
||||
});
|
||||
|
||||
socket.on('error', function(err){
|
||||
err.should.eql("Invalid token: no header in signature 'boooooo'");
|
||||
err.message.should.eql("Invalid token: no header in signature 'boooooo'");
|
||||
err.code.should.eql("invalid_token");
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user