mod for apigw
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -39,14 +39,14 @@ var auth = createAuth({
|
||||
options:{
|
||||
notFoundRedirect: '/auth/login',
|
||||
authRedirect: '/auth/login',
|
||||
loginData: {url: 'api/auth/login', method: 'POST', redirect: '/'},
|
||||
logoutData: {redirect: '/auth/login'},
|
||||
fetchData: {url: 'api/auth/fetch-user', method: 'GET', enabled: true},
|
||||
refreshData: {url: 'api/auth/refresh-token', method: 'GET', enabled: true}
|
||||
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}
|
||||
}
|
||||
});
|
||||
|
||||
axios.defaults.baseURL ='https://hermione-nu6mvqujsq-ey.a.run.app/' // import.meta.env.VITE_BACKEND_URL;
|
||||
axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ const login = async () => {
|
||||
},
|
||||
redirect:'/',
|
||||
fetchUser: true,
|
||||
url: '/api/auth/login'
|
||||
//url: '/api/auth/login'
|
||||
})
|
||||
} catch (err) {
|
||||
console.log( 'Error ' + err)
|
||||
|
||||
Reference in New Issue
Block a user