michaelkrone / generator-material-app

Yet another yeoman generator for scaffolding a simple Node.js/Express/MongoDB/Angular.js app using some material design elements.
MIT License
177 stars 48 forks source link

Error 'UnauthorizedError: jwt malformed' in auth #96

Closed Stupidism closed 8 years ago

Stupidism commented 8 years ago
defaultErrorHandler /api/users/me 200 { [UnauthorizedError: jwt malformed]
  name: 'UnauthorizedError',
  message: 'jwt malformed',
  code: 'invalid_token',
  status: 401,
  inner: { [JsonWebTokenError: jwt malformed] name: 'JsonWebTokenError', message: 'jwt malformed' } }
GET /api/users/me 401 2ms - 407b
UnauthorizedError: jwt malformed
    at /home/stupid/Documents/demos/materialApp/node_modules/express-jwt/lib/index.js:100:22
    at /home/stupid/Documents/demos/materialApp/node_modules/jsonwebtoken/index.js:155:18
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
Stupidism commented 8 years ago

Caused by DateInterceptor converting token into date