From 41df7429d243218da8e260b3fdca9968216a6485 Mon Sep 17 00:00:00 2001 From: Luka Radenovic Date: Thu, 10 Feb 2022 09:43:35 +0100 Subject: [PATCH] Change access_token to accesToken --- src/services/auth/redux/reducers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/auth/redux/reducers.ts b/src/services/auth/redux/reducers.ts index a33e098..d92e6f9 100644 --- a/src/services/auth/redux/reducers.ts +++ b/src/services/auth/redux/reducers.ts @@ -10,7 +10,7 @@ const initialState: AuthState = { const auth = createApiReducer( [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, );