Click in order · NestJS course · Module 4: Authentication

jwtService.sign() method

Arrange the elements of the jwtService.sign() call in the correct order

Items to click

  • .sign(
  • )
  • { sub: user.id, username: user.username }
  • this.jwtService

You can check the correct answer by solving this task in the CodeWorlds game.