This commit is contained in:
Sebastian Rindom committed 2020-08-22 12:07:40 +02:00
1 parent 27d4e07c52
commit 06ca7ee0d7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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)