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

Improving the auth.js middleware #19

Open
3 tasks done
ugz-man opened this issue Oct 2, 2024 · 4 comments
Open
3 tasks done

Improving the auth.js middleware #19

ugz-man opened this issue Oct 2, 2024 · 4 comments
Assignees
Labels

Comments

@ugz-man
Copy link

ugz-man commented Oct 2, 2024

The auth.js middleware is too simple I can improve it by adding stuffs like:

  • Check if the user still exists
  • Checking if the user recently changed password after the token was issued
  • Add the already logged in user on request object for easy access down the middleware pipeline

I will have to modify the auth.js middleware file and User model and maybe some other files

Please assign this task to me.

@Charul00
Copy link

Charul00 commented Oct 2, 2024

can i work on this

@vishalverma9572
Copy link
Owner

@ugz-man go for it!

@vishalverma9572
Copy link
Owner

@Charul00 You can work on other issues in the meantime. or you both can co-operate.

@abdullateef97
Copy link

@vishalverma9572 I see you closed the PR, I'd like to pick it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants