-
- componentDidMount() {
- const search = this.props.location ? this.props.location.search : "";
- const apiToken = ApiToken.getUrlParameter(search, 'api_token');
- this.props.dispatch(authActions.SAVE_API_TOKEN(apiToken));
- this.props.dispatch<any>(authService.getUserDetails()).then(() => {
- const rootUuid = authService.getRootUuid();
- this.props.dispatch(projectService.getProjectList(rootUuid));
- });
- }
- render() {
- return <Redirect to="/"/>;
- }
-}
-
-export default connect()(ApiToken);