Skip to content

Commit d982bef

Browse files
committed
Revert "fix problem on simultaneous login"
This reverts commit 23ba727.
1 parent 2463f09 commit d982bef

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

frontend/frontend/src/api/user.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import axios from 'axios';
22

33
import { HOST } from '../constants';
4-
import { logout } from '../redux/actions/userActions';
54

65
const authenticate = async (code, privateAccess, userKey) => {
76
try {
@@ -27,9 +26,6 @@ const getUserMetadata = async (userKey) => {
2726
const result = await axios.get(fullUrl);
2827
return result.data;
2928
} catch (error) {
30-
if (error.response && error.response.status === 404) {
31-
logout(userKey);
32-
}
3329
console.error(error);
3430
return null;
3531
}

0 commit comments

Comments
 (0)