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 // Alternatively use bearer token to authenticate to the admin api
passport.use( passport.use(
new BearerStrategy((token, done) => { new BearerStrategy((token, done) => {
console.log(token) const auth = await authService.authenticateAPIToken(token)
const auth = authService.authenticateAPIToken(token)
console.log(auth)
if (auth.success) { if (auth.success) {
done(null, auth.user) done(null, auth.user)
} else { } else {