I'm using NSwag to generate my TypeScript client (Angular format), but I'm having problems with implementing Bearer token authentication because of circular dependencies.
My user service needs to import the TS client to use the token DTOs and my TS client needs to import the user service to inject the token.
As such, I was wondering if it was possible to split the generated file into two (or more) client and model files.
Another option is to implement an interceptor on the HTTP requests, but I find that abhorrent since it could cause problems if I use another API.