@ -24,6 +24,7 @@
handle_path /pgweb/* {
jwtauth {
sign_key iYg7wB+sPihtjz50iJTsD0XmOeUwKy2TJtfNLcqFRM8=
from_cookies user_session
}
rewrite * {path}
@ -41,6 +41,7 @@ export default {
.then(data => {
if (data.access_token) {
localStorage.setItem('user', JSON.stringify(data));
document.cookie = `user_session=${JSON.stringify(data.access_token)}; path=/; max-age=${60 * 60 * 24 * 365}; SameSite=strict`
this.$router.push('/admin')
})