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

Move checkAuth to middleware #296

Open
Rochet2 opened this issue Oct 8, 2019 · 1 comment
Open

Move checkAuth to middleware #296

Rochet2 opened this issue Oct 8, 2019 · 1 comment
Labels
refactoring Refactoring code for the better of all humans

Comments

@Rochet2
Copy link
Member

Rochet2 commented Oct 8, 2019

This avoids cases where we forget to add 'await' and is more streamlined.

@Rochet2 Rochet2 added the refactoring Refactoring code for the better of all humans label Oct 8, 2019
@Rochet2 Rochet2 closed this as completed Oct 8, 2019
@Jakousa Jakousa reopened this Oct 8, 2019
@Jakousa
Copy link
Member

Jakousa commented Oct 8, 2019

Clean/remove await checkAuth(req).

Instead use the current user from req. Atm req.user.

Move checkAuth to middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring code for the better of all humans
Projects
None yet
Development

No branches or pull requests

2 participants