Update auth and logs

This commit is contained in:
2025-06-04 13:45:02 +02:00
parent 7f31ae1d5a
commit ed1786da65
3 changed files with 234 additions and 213 deletions

View File

@@ -42,8 +42,8 @@ var auth = createAuth({
authRedirect: '/auth/login',
loginData: {url: '/api/auth/login', method: 'POST', redirect: '/'},
logoutData: {url:'/api/auth/logout', redirect: '/auth/login'},
fetchData: {url: '/api/auth/fetch-user', method: 'GET', enabled: true},
refreshData: {url: '/api/auth/refresh-token', method: 'GET', enabled: true}
fetchData: {url: '/api/auth/fetch-user', method: 'GET', enabled: false},
refreshData: {url: '/api/auth/refresh-token', method: 'GET', enabled: false}
}
});