Coding task · NestJS course · Module 4: Authentication

Refresh Token

Implement a method that generates a refresh token with a longer lifetime

Task

Complete the generateRefreshToken method in AuthService that creates a JWT with expiresIn: '7d' and contains a payload with userId and tokenType: 'refresh'