You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moving this (back) to issues as I agree with @mmkal & @mmkal that this would be useful, especially now that batching is enabled by default for things like time logging.
Originally posted by delaneyj June 18, 2021
Unless I'm missing something you can't have a middleware do pre/post style flow ala koa...
.middleware(async({ ctx, next })=>{constauth=checkForAuth(ctx)if(!auth)returnhandleUnauth(ctx)awaitnext()constupdate=checkForUpdatedAuth(ctx)if(update){ctx.res.headers['x-access-token']=update.token}})
Activity
KATT commentedon Aug 29, 2021
Part of v9
github-actions commentedon Oct 4, 2022
This issue has been locked because it had no new activity for 14 days. If you are running into a similar issue, please create a new issue. Thank you.