feathersjs-ecosystem / authentication-jwt

[MOVED] JWT authentication strategy for feathers-authentication using Passport
https://github.com/feathersjs/feathers
MIT License
30 stars 10 forks source link

Problem with "header" configuration. Collision of config options? #34

Closed RobIsHere closed 7 years ago

RobIsHere commented 7 years ago

I have a configuration in place exactly like in the docs at https://docs.feathersjs.com/api/authentication/server.html

and feathers-authentication-jwt complains at https://github.com/feathersjs/feathers-authentication-jwt/blob/master/src/index.js#L40 that "header": { "type": "access" } may not be an object.

excerpt from config:

  "authentication": {
    "header": "Authorization",  
    "secret": "...",
    "jwt": {
      "header": { "type": "access" },
      "audience": "mydomain.de",
      "subject": "access",
      "issuer": "mydomain.de",
      "algorithm": "HS256",
      "expiresIn": "14d"
    },

I think there is a collision of the header configurations being merged somehow?

My project is pretty new set up with feathers-generate.

RobIsHere commented 7 years ago

I'll close that issue, as it seems to continue in generator-feathers#278