I’m trying to find some examples of custom middleware used in a production application.I understand how to create and use a custom middleware but I am struggling to think of ways to apply them.For example, could I use a custom middleware function to authenticate a user’s access token before a route is called? This may be a bad example but the gist of the question is authentication.Thanks!
Submitted February 25, 2020 at 12:03AM by skidmark_zuckerberg
No comments:
Post a Comment