in my App component below, mounted() lifecycle hook is not triggered:
<template>
<div>
<div v-if='signedIn'>
<router-view />
</div>
</div>
</template>
<script>
import Vue from 'vue'
import Oidc from 'oidc-client'
Vue.use(Oidc)
export default {
data () {
return {
user: null,
signedIn: false,
mgr: new Oidc.UserManager({...settings...})
}
},
methods: {
signIn () {
},
signOut () {
},
getUser () {
},
mounted () {
this.getUser()
}
}
}
</script>
I have gone through the code several times, not sure what I'm missing. I have this in the main.js file:
new Vue({
el: '#app',
render: h => h(App),
router
})