Commit 9e24c69a authored by Tamlyn Rhodes's avatar Tamlyn Rhodes

Use new authsome mode config

parent a196ea36
const testMode = require('../test/helpers/authsome_mode')
const path = require('path')
const Joi = require('joi')
const winston = require('winston')
......@@ -32,7 +32,7 @@ module.exports = {
}
},
authsome: {
mode: testMode,
mode: path.resolve(__dirname, '..', 'test', 'helpers', 'authsome_mode'),
teams: {
teamContributors: {
name: 'Contributors',
......
......@@ -2,7 +2,9 @@
const config = require('config')
const Authsome = require('authsome')
const models = require('../models')
const authsome = new Authsome(config.authsome, {
const mode = require(config.get('authsome.mode'))
const authsome = new Authsome({...config.authsome, mode}, {
// restrict methods passed to mode since these have to be shimmed on client
// any changes here should be reflected in the `withAuthsome` component of `pubsweet-client`
models: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment