X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a5984c9693267f41237746af6b37d8402effdc39..7ba0401cff3906814ba976ea36adab9b3d5c3922:/src/store/auth/auth-action.ts diff --git a/src/store/auth/auth-action.ts b/src/store/auth/auth-action.ts index dbf9a0f419..e18c78b106 100644 --- a/src/store/auth/auth-action.ts +++ b/src/store/auth/auth-action.ts @@ -2,16 +2,8 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { serverApi } from "../../common/server-api"; import { ofType, default as unionize, UnionOf } from "unionize"; -import { Dispatch } from "redux"; - -export interface UserDetailsResponse { - email: string; - first_name: string; - last_name: string; - is_admin: boolean; -} +import { UserDetailsResponse } from "../../services/auth-service/auth-service"; const actions = unionize({ SAVE_API_TOKEN: ofType(), @@ -27,16 +19,3 @@ const actions = unionize({ export type AuthAction = UnionOf; export default actions; - -export const getUserDetails = () => (dispatch: Dispatch) => { - dispatch(actions.USER_DETAILS_REQUEST()); - serverApi - .get('/users/current') - .then(resp => { - dispatch(actions.USER_DETAILS_SUCCESS(resp.data)); - }) - // .catch(err => { - // }); -}; - -