I’ve a couple of `HttpJwtAuthorizer` that I need t...
# help
a
I’ve a couple of
HttpJwtAuthorizer
that I need to share across some stacks. I am initialising these authorizers in a separate stack called
PreStack
. How can I share these authorizers from
PreStack
so that my other stacks can refer to the same authorizers?
f
Hey @Ashishkumar Pandey,
HttpJwtAuthorizer
are not AWS resources, so they don’t belong to any stack. It’s really just a config object that’s passed into the
Api
construct.
Let me know if that makes sense.
a
okay, it does, I’ll simply create a util file and share the config across stacks.
f
Yup yup, that will work!