diff --git a/resources/js/components/SessionExpiry.vue b/resources/js/components/SessionExpiry.vue index a305bea8e1..10cb47cb2d 100644 --- a/resources/js/components/SessionExpiry.vue +++ b/resources/js/components/SessionExpiry.vue @@ -121,6 +121,10 @@ export default { } this.lastCount = Vue.moment(); + }, + + isShowingLogin(showing, wasShowing) { + if (showing && !wasShowing) this.updateCsrfToken(); } },