[Question] is there an option guard register route?
arnoldtkl opened this issue · 2 comments
arnoldtkl commented
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.
fynnlyte commented
Have a look at requireAuth. It should be possible to intercept requests to /register
with an auth check before passing them on.
arnoldtkl commented
Ok, thanks for the guidance!