nl_tokens: Handles errors if authentication from access_token provider fails
pl_tokens: function tokenAuthErrorHandler ( err , req , res , next ) { var status ; if ( req . user && req . user . _id ) { status = 403 ; } else { status = 401 ; } console . error ( err ) ; if ( err . <mask> ) { console . error ( err . stack ) ; delete err . stack ; } res . status ( status ) . json ( err ) ; }