perfood/couch-auth

[Question] is there an option guard register route?

arnoldtkl opened this issue · 2 comments

Hi, thanks for maintaining this library! I appreciate the effort to keep this library updated constantly.

I was just wondering if there is an option to guard the register route with logged in users? Because I have a private system which does not allow public users to register or login.

Have a look at requireAuth. It should be possible to intercept requests to /register with an auth check before passing them on.

Ok, thanks for the guidance!