Merge pull request #8517 from Budibase/add-extra-auth-logging
Add extra auth logging to authenticated.ts
This commit is contained in:
commit
016df010db
|
@ -152,6 +152,7 @@ export = (
|
|||
return next()
|
||||
}
|
||||
} catch (err: any) {
|
||||
console.error("Auth Error", err?.message || err)
|
||||
// invalid token, clear the cookie
|
||||
if (err && err.name === "JsonWebTokenError") {
|
||||
clearCookie(ctx, Cookies.Auth)
|
||||
|
|
Loading…
Reference in New Issue