typically you would cache the keys.
Multitenant JWT Validation
George Waters
21
Reputation points
Hi,
I'm working on a multi-tenant net core 7 webapi, where each customer has its own database and I want each customer to have its own key to generate the jwt token, instead of having one for all.
I thought of having these keys in a database, but this means that, each request will have to check database and retrieve the key to validate jwt, this doesn't sounds good to me.
What would be the right way to achieve this?
Thanks in advance.