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
I have a need to use validateRequest() from middleware.ts; but it was throwing an error on the caching in export const getCurrentUser = cache(async () => { with Error [ERR_HTTP_HEADERS_SENT]: Cannot append headers after they are sent to the client the fix is to move the function getSessionToken from session.ts to auth.ts. Hope this helps someone!
The text was updated successfully, but these errors were encountered:
I have a need to use
validateRequest()
frommiddleware.ts
; but it was throwing an error on the caching inexport const getCurrentUser = cache(async () => {
withError [ERR_HTTP_HEADERS_SENT]: Cannot append headers after they are sent to the client
the fix is to move the functiongetSessionToken
fromsession.ts
toauth.ts
. Hope this helps someone!The text was updated successfully, but these errors were encountered: