Skip to content

Commit 8fe065a

Browse files
committed
migration
1 parent 809a4c2 commit 8fe065a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

front/src/mock/userInfo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export const userMock = Object.freeze({
77
firstname: 'John',
88
lastname: 'Doe',
99
isAdmin: true,
10+
token:
11+
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkZW1vIiwiaWF0IjoxNTAyMzA3MzU0LCJleHAiOjE3MjMyMzIxNTQsImF1ZCI6ImRlbW8tZGVtbyIsInN1YiI6ImRlbW8iLCJHaXZlbk5hbWUiOiJKb2huIiwiU3VybmFtZSI6IkRvZSIsIkVtYWlsIjoiam9obi5kb2VAZXhhbXBsZS5jb20iLCJSb2xlIjpbIlN1cGVyIGNvb2wgZGV2IiwibWFnaWMgbWFrZXIiXX0.6FjgLCypaqmRp4tDjg_idVKIzQw16e-z_rjA3R94IqQ',
1012
},
1113
});
1214

front/src/pages/login/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import FadeInEntrance from '../../components/fadeInEntrance';
1313
type Props = {} & RouteComponentProps<any, any> & AuthContextProps;
1414

1515
function Login({
16-
disconnectUser = () => {},
16+
disconnectUser = () => true,
1717
history,
1818
setToken,
1919
setUserInfo,
@@ -84,7 +84,7 @@ function Login({
8484
async (
8585
login: string = '',
8686
password: string = '',
87-
): Promise<{ data: { user: Partial<User>; token: string } }> => {
87+
): Promise<{ data: { user: User; token: string } }> => {
8888
const __SOME_LOGIN_API__ = 'login';
8989
const url = `${getLocationOrigin()}/${__SOME_LOGIN_API__}`;
9090
const method = 'post';

0 commit comments

Comments
 (0)