vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.82k stars 323 forks source link

avoid infinite redirection #1487

Closed thehouseisonfire closed 5 months ago

thehouseisonfire commented 5 months ago

Hi, I had some trouble with this example once I added the '.global' suffix to the file (the whole application requires credentials) where I was (I assume at least) getting an infinite redirection recursion to the /login route. Since this is a fairly common use for auth middlewares, I think making it more clear (either through code, a comment or a markdown tip) that applying it to '/login' causes that would avoid others falling into this little pitfall.