Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend > Fix > Adicionar verificação de membro not null no isLeadership. #32

Closed
1 task
ManoMax opened this issue Aug 31, 2023 · 1 comment
Closed
1 task
Assignees

Comments

@ManoMax
Copy link
Member

ManoMax commented Aug 31, 2023

OVERVIEW

  • No momento em que um usuário apaga a si mesmo, o JWT continua em LocalStorage, sendo enviados, assim, para todas as requisições seguites;
  • Por ser um Token válido nas decriptografias, o sistema reconhece como um Token válido, mas o BD não irá encontrar um usuário com tais assinaturas (por tal ter sido removida);
  • Isso pode travar o sistema, a partir do momento em que o código lê algo como member.role (presente no auth.js), já que member é null.

TASK

  • Adicionar verificação de member not null anteriormente ao uso do member.role.
@ManoMax ManoMax converted this from a draft issue Aug 31, 2023
@ManoMax ManoMax self-assigned this Aug 31, 2023
@ManoMax ManoMax moved this from 🆕 New to 🏗 In progress in Kanban Projexa (CodeX Jr.) Aug 31, 2023
@ManoMax
Copy link
Member Author

ManoMax commented Aug 31, 2023

#35

@ManoMax ManoMax moved this from 🏗 In progress to 👀 In review in Kanban Projexa (CodeX Jr.) Aug 31, 2023
@ManoMax ManoMax moved this from 👀 In review to ✅ Done in Kanban Projexa (CodeX Jr.) Sep 11, 2023
@ManoMax ManoMax closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants