I am using to create backend NestJs library. In my code i have used a guard to check if my token is still active:
NestJs
guard