Open eseca opened 8 years ago
For an application where multiple actors need to authenticate using JWT, you would need a way to tell the route which model is storing the secret.
An easy way to solve this is:
module.exports.kimyjwt = { models: [ { model: "user", secretField: "secret", idField: "id", // This is an attribute in the model } ] }
And async help with replication of the polices settings
For an application where multiple actors need to authenticate using JWT, you would need a way to tell the route which model is storing the secret.