'Nestjs auth and user Module circular dependency
My issue is that I need an auth module and user module each containing a service (eg. auth and user service).
First I wanted to import the user module (whcih exports the user service) into the auth module. However now the user controller should return an jwt (created by auth service) instead of the user id etc. which was returned by the user service before.
This results in a circular dependency. (I thought all interactions with the user table should be run through the user service)
Is there a best practise to handle this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
