DEV Community

loading...

Discussion on: Building User Accounts with Nuxt, Vuex, and Firebase

Collapse
drewclem profile image
Drew Clements Author

Great question! Perhaps I should update this article to include that.

In the meantime, you can check out this repo that does just that.
github.com/drewclem/Colt

Here is where middleware is set up
github.com/drewclem/Colt/blob/mast...
And here is how you would lock a page behind the authentication (see line 43)
github.com/drewclem/Colt/blob/mast...