diff --git a/backend/src/jwt/encode.js b/backend/src/jwt/encode.js index 1552804cc..f2547e30e 100644 --- a/backend/src/jwt/encode.js +++ b/backend/src/jwt/encode.js @@ -4,7 +4,7 @@ import CONFIG from './../config' // Generate an Access Token for the given User ID export default function encode(user) { const token = jwt.sign(user, CONFIG.JWT_SECRET, { - expiresIn: 24 * 60 * 60 * 1000, // one day + expiresIn: '1d', issuer: CONFIG.GRAPHQL_URI, audience: CONFIG.CLIENT_URI, subject: user.id.toString(), diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index 4a2e6f38c..a95cac136 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -271,7 +271,7 @@ module.exports = { apollo: { tokenName: 'human-connection-token', // optional, default: apollo-token cookieAttributes: { - expires: 3, // optional, default: 7 (days) + expires: 1, // optional, default: 7 (days) }, // includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder) diff --git a/webapp/store/auth.js b/webapp/store/auth.js index a87897548..b0359fac9 100644 --- a/webapp/store/auth.js +++ b/webapp/store/auth.js @@ -144,10 +144,4 @@ export const actions = { commit('SET_TOKEN', null) return this.app.$apolloHelpers.onLogout() }, - - register({ dispatch, commit }, { email, password, inviteCode, invitedByUserId }) {}, - async patch({ state, commit, dispatch }, data) {}, - resendVerifySignup({ state, dispatch }) {}, - resetPassword({ state }, data) {}, - setNewPassword({ state }, data) {}, }