18 lines
423 B
JavaScript
18 lines
423 B
JavaScript
'use strict'
|
|
|
|
let { authStrategies } = require('../../index')
|
|
|
|
module.exports = {
|
|
ServerInfo: {
|
|
authStrategies() {
|
|
// TODO: Fix this
|
|
// NOTE: this is an ugly hack as, for some unidentified reason, in the
|
|
// testing env the require above does not f&&&&ing work.
|
|
if (!authStrategies) {
|
|
;({ authStrategies } = require('../../index'))
|
|
}
|
|
return authStrategies || []
|
|
}
|
|
}
|
|
}
|