Huge work
This commit is contained in:
@@ -52,7 +52,15 @@ const getters = {
|
||||
},
|
||||
userId(state, getters) {
|
||||
if (!getters.isValid) return null
|
||||
return state.tokenData.email
|
||||
return state.tokenData.sub
|
||||
},
|
||||
isExpiringSoon(state, getters) {
|
||||
if (!getters.isValid) return false
|
||||
return true
|
||||
},
|
||||
expires(state, getters) {
|
||||
if (!getters.isValid) return 0
|
||||
return new Date(state.tokenData.exp * 1000)
|
||||
},
|
||||
loginUrl(state, getters) {
|
||||
if (!getters.isReady) return null
|
||||
|
Reference in New Issue
Block a user