The Ultimate Auth Guide, Using NestJS, GraphQL, Prisma & Postgres | Logout Feature

preview_player
Показать описание
In this video, we will be implementing the logout feature of our NestJs app, using GraphQL, Prisma and Postgres. This video is part of the series “The ultimate NestJs Auth Guide (GraphQL,Prisma, Postgres). When logging out, the in the database stored hashed refresh token will be set to null.

Do you need something from Amazon? If you want to support my work and motivate me to produce more & better programming content, use my Amazon-Affiliate-Link.
It does not cost you any extra money, but I get a little commission, whenever you buy anything via this link. It means the world to me 😊

Рекомендации по теме
Комментарии
Автор

the gql playground, during logout, I get error "Variable \"$id\" of required type \"Int!\" was not provided." but if I pass it as static value directly, it works, why?

omnilothar
Автор

Shouldn't this logout function be based on accessToken and not ID? Right now we can log out any user based on their ID but I think only logged in user should be able to log out themselves

GreenMerlin
welcome to shbcf.ru