Is it possible to have a service only used by an AuthGuard in the same module be a singleton?

RMAG news

I haven’t been able to get it to work. It seems like the constructor of the auth guard is only called once, but I get a different instance of the service when canActivate is called in the guard.

Is there a way to confirm this? Is there a thing I can log to get the instanceId of the service or something?

Leave a Reply

Your email address will not be published. Required fields are marked *