You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a usecase I would like to put the express instance in a container.
I wan't to be able to register this as a singleton so I can just get the instance everywhere in the application.
I think it would be a good addition to be able to define the scope for all types of tokens when registering.
The text was updated successfully, but these errors were encountered:
A scope for a factory function means it's cached somewhere, which is not the case for current implementation. I think you can do workaround by creating a class that returns the express instance from its constructor, then it will be cached in the specified scope as usual.
If you have any specific examples you can express with code, will be glad to see it! :)
For a usecase I would like to put the express instance in a container.
I wan't to be able to register this as a singleton so I can just get the instance everywhere in the application.
I think it would be a good addition to be able to define the scope for all types of tokens when registering.
The text was updated successfully, but these errors were encountered: