26.08.2018 - The auth() function will check if a JWT exists in the local storage and if not, will redirect the user to the login route. The log() Middleware function .