Debug passport

This commit is contained in:
Sebastian Rindom
2020-08-22 11:59:39 +02:00
parent 89275414d5
commit 7402081ec5

View File

@@ -47,7 +47,9 @@ 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)
if (auth.success) {
done(null, auth.user)
} else {