This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
π Morning 74 commits βββββββββββββββββββββ 9.1% | |
π Daytime 211 commits βββββββββββββββββββββ 26.0% | |
π Evening 359 commits βββββββββββββββββββββ 44.3% | |
π Night 167 commits βββββββββββββββββββββ 20.6% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import { firestorePlugin } from 'vuefire' | |
import firebase from 'firebase/app' | |
import 'firebase/firestore' | |
Vue.use(firestorePlugin) | |
var firebaseConfig = { | |
apiKey: "AIzaSyDzqN-wqvAsZ41HVCTzHYqqpQ_cX1sWzYs", | |
authDomain: "daily-todo-backend.firebaseapp.com", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import store from '@/plugins/store' | |
axios.interceptors.request.use((config) => { | |
let accessToken = store.getters.accessToken; | |
if (accessToken) { | |
config.headers.Authorization = `Bearer ${accessToken}`; | |
} | |
return config; | |
}); |