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
The middleware.ts in the faunadb folder has the same code as the middleware.ts file one folder behind.
Is there a way to not have to duplicate all the code here from ../middleware? Simply calling the functions there will not work since we want to call getSession and refreshSession of faunaDB in express.ts in the faunadb folder.
Another related issue is that if there is a function (like auth0Handler) that calls getSession or createNewSession inside of it, we want that to use the ones defined in the faunadb/express.ts (if the user is using faunadb). At the moment, the only way that's possible is by duplicating the logic for auth0Handler.
The text was updated successfully, but these errors were encountered:
The middleware.ts in the faunadb folder has the same code as the middleware.ts file one folder behind.
Is there a way to not have to duplicate all the code here from ../middleware? Simply calling the functions there will not work since we want to call
getSession
andrefreshSession
of faunaDB in express.ts in the faunadb folder.Another related issue is that if there is a function (like auth0Handler) that calls getSession or createNewSession inside of it, we want that to use the ones defined in the faunadb/express.ts (if the user is using faunadb). At the moment, the only way that's possible is by duplicating the logic for
auth0Handler
.The text was updated successfully, but these errors were encountered: