Auth Module With Deferred User Module
I have an AuthModule in a generalized library which requires interacting with a UserModule similar to the docs. What I want to do is define an Interface that the UserService must a
Solution 1:
Working with forwardRef() should only be your last resort. Alternatively, consider splitting one of the modules into two or more parts to break the circular dependencies, e.g.:
AuthModule into
AuthLoginModulegets imported by the UserModuleValidateAuthModuleimports the UserModule
or respectively the UserModule into two parts.
Post a Comment for "Auth Module With Deferred User Module"