This file contains 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 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 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; | |
}); |