Published in


Last (Vuex) Action Hero

Clapper used on a movie set
Photo by Jakob Owens on Unsplash
  1. The mobile app (Android and iOS)
  2. A web-based admin tool (also built in Vue)
  3. A Node.js API with Express that powers both
  1. Authenticate with Firebase
  2. Request an “ID Token” from Firebase
  3. Attach that token as an “Authorization” header for every request to our API
  4. The API checks that token against Firestore to make sure you are who you say you are (and handle any appropriate permissions or scoping)
Checking the auth token in node
Overwrite store.dispatch for Vuex
Add “retryLastAction” method to Vuex store
Vuex Actions



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store