Change access_token to accesToken

This commit is contained in:
Luka Radenovic 2022-02-10 09:43:35 +01:00
parent 7a2f212b66
commit 41df7429d2

View file

@ -10,7 +10,7 @@ const initialState: AuthState = {
const auth = createApiReducer( const auth = createApiReducer(
[AuthActionTypes.SIGN_IN_START, AuthActionTypes.SIGN_IN_SUCCESS, AuthActionTypes.SIGN_IN_FAILURE], [AuthActionTypes.SIGN_IN_START, AuthActionTypes.SIGN_IN_SUCCESS, AuthActionTypes.SIGN_IN_FAILURE],
(data) => ({ token: data.access_token }), (data) => ({ token: data.accessToken }),
(data) => data.error.message, (data) => data.error.message,
); );