CodeZettaInterview Hub

NestJS · Authentication · Mid-Level · Architecture

How do you implement refresh tokens with Nest?

Short Interview Answer

Store hashed refresh tokens, rotate on use, protect refresh route, and short-lived access JWTs.

Detailed Explanation

Reuse detection revokes families. Separate secrets. Prefer httpOnly cookies for browsers.

Did you know this answer?