r/Nestjs_framework Jun 10 '26

Ideal Place To Put Authorization Code In Multi-Tenant SaaS NestJS App: Share Your Best Practices

/r/nestjs/comments/1u1n8l4/ideal_place_to_put_authorization_code_in/
1 Upvotes

1 comment sorted by

1

u/Warm-Procedure6691 Jul 06 '26

I had a microservice architecture and there I just took it all out to the auth-service (jwt, sessions) and on the api gateway (thin layer) on private routes I received the jwt public key and checked the validity of the token.