Debug passport
This commit is contained in:
@@ -47,7 +47,9 @@ 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 = 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user