login redirect modified

This commit is contained in:
sumedh
2024-08-15 10:36:33 +05:30
parent d93e0546f3
commit aacf73151d
2 changed files with 5 additions and 4 deletions

View File

@@ -36,9 +36,10 @@ var auth = createAuth({
options:{ options:{
notFoundRedirect: '/auth/login', notFoundRedirect: '/auth/login',
authRedirect: '/auth/login', authRedirect: '/auth/login',
loginData: {url: 'api/auth/login', method: 'POST', redirect: '/'}, loginData: {url: '../api/auth/login', method: 'POST', redirect: '/'},
fetchData: {url: 'api/auth/fetch-user', method: 'GET', enabled: true}, logoutData: {url:'../api/auth/logout', redirect: '/auth/login'},
refreshData: {url: 'api/auth/refresh-token', method: 'GET', enabled: true} fetchData: {url: '../api/auth/fetch-user', method: 'GET', enabled: true},
refreshData: {url: '../api/auth/refresh-token', method: 'GET', enabled: true}
} }
}); });

View File

@@ -22,7 +22,7 @@ const login = () => {
}, },
redirect: '/ksdocuments', redirect: '/ksdocuments',
fetchUser: true, fetchUser: true,
url: '/api/auth/login' //url: '/api/auth/login'
}); });
} }