Envs not extendable with `createFactory`
When utilizing the createFactory method, middleware is unable to modify or extend any of the types. This seems like a bug/issue as any auth middlware would want to ensure a session/user variable would be defined for type safety.
factory.ts
middleware.ts
1 Reply
in the screenshot examples, I have one working example(without factory) and one broken(with factory).