Coding task · NestJS course · Module 4: Authentication

JwtPayload interface

Define the JwtPayload interface with fields sub, username, email, role, iat, and exp

Task

Create a JwtPayload interface in TypeScript containing the fields: sub (number), username (string), email (string), role (string), iat (number), and exp (number)