Update auth.ts
This commit is contained in:
parent
fcd1113494
commit
27dec6e390
|
@ -35,8 +35,7 @@ async function passportCallback(
|
||||||
info: { message: string } | null = null
|
info: { message: string } | null = null
|
||||||
) {
|
) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error("Authentication error")
|
console.error("Authentication error", err)
|
||||||
console.error(err)
|
|
||||||
console.trace(err)
|
console.trace(err)
|
||||||
return ctx.throw(403, info ? info : "Unauthorized")
|
return ctx.throw(403, info ? info : "Unauthorized")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue