Closed enricostano closed 8 years ago
I was trying to get rid of /me
requests and to restore original /api/v1/login
POST request without luck :disappointed:
diff --git a/src/redux/modules/auth.js b/src/redux/modules/auth.js
index 2fd2eef..30b8ddf 100644
--- a/src/redux/modules/auth.js
+++ b/src/redux/modules/auth.js
@@ -80,14 +80,14 @@ export function isLoaded(globalState) {
export function load() {
return {
types: [LOAD, LOAD_SUCCESS, LOAD_FAIL],
- promise: (client) => client.get('/me')
+ promise: (client) => client.get('/loadAuth')
};
}
export function login(email, password) {
return {
types: [LOGIN, LOGIN_SUCCESS, LOGIN_FAIL],
- promise: (client) => client.post('/login', {
+ promise: (client) => client.post('/api/v1/login', {
data: {
email: email,
password: password
@andresgutgon can we close this PR?
yes
Bringing back session management to Express