Using services within an `HttpApiMiddleware` can be tricky due to type constraints. The error you...
Hello, is it possible to use any service from a HttpApiMiddleware?
I have this setup:
My Authorization middleware
provides ZitadelToken.
I wish to use that within my ProfileRequired middleware:
which uses UserService to get the user profile from a database: (the code below works as long as I don't yield* the services (ZitadelToken & UserService), but once I do it tells me
does anyone know a fix / better way?
I have this setup:
My Authorization middleware
provides ZitadelToken.
I wish to use that within my ProfileRequired middleware:
which uses UserService to get the user profile from a database: (the code below works as long as I don't yield* the services (ZitadelToken & UserService), but once I do it tells me
does anyone know a fix / better way?
