Mercurial > gemma
changeset 1710:292929fa0340
fix: renew interval too short
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 08 Jan 2019 14:20:32 +0100 |
parents | 8ff8d873ef6b |
children | aec17976528e |
files | client/src/store/user.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/user.js Tue Jan 08 13:59:47 2019 +0100 +++ b/client/src/store/user.js Tue Jan 08 14:20:32 2019 +0100 @@ -75,7 +75,7 @@ const handleResponse = response => { const { expires } = response.data; const renew = - (new Date(toMillisFromString(expires)) - new Date()) / 1010; + (new Date(toMillisFromString(expires)) - new Date()) * 0.9; commit("authSuccess", response.data); resolve(response); setTimeout(() => {