1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

Merge pull request #8517 from Budibase/add-extra-auth-logging

Add extra auth logging to authenticated.ts
This commit is contained in:
Rory Powell 2022-11-04 08:33:19 +00:00 committed by GitHub
commit ee500e4d91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)