Files
speckle-server/packages/server/modules/auth/graph/resolvers/auth.js
T
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +03:00

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 || []
}
}
}