Missing await

This commit is contained in:
Sebastian Rindom
2020-08-22 12:04:11 +02:00
parent a40f47eadf
commit a2240462a8
+1 -3
View File
@@ -47,9 +47,7 @@ export default async ({ app, container }) => {
// Alternatively use bearer token to authenticate to the admin api
passport.use(
new BearerStrategy((token, done) => {
console.log(token)
const auth = authService.authenticateAPIToken(token)
console.log(auth)
const auth = await authService.authenticateAPIToken(token)
if (auth.success) {
done(null, auth.user)
} else {