Async
This commit is contained in:
@@ -74,5 +74,5 @@
|
||||
"resolve-cwd": "^3.0.0",
|
||||
"winston": "^3.2.1"
|
||||
},
|
||||
"gitHead": "3cc7cbe5124cbcbb75f6e1435db4dcfaa2a60408"
|
||||
"gitHead": "27d4e07c5251e43ba6be2d5fa35f1d5287b11043"
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export default async ({ app, container }) => {
|
||||
|
||||
// Alternatively use bearer token to authenticate to the admin api
|
||||
passport.use(
|
||||
new BearerStrategy((token, done) => {
|
||||
new BearerStrategy(async (token, done) => {
|
||||
const auth = await authService.authenticateAPIToken(token)
|
||||
if (auth.success) {
|
||||
done(null, auth.user)
|
||||
|
||||
Reference in New Issue
Block a user