Skip to content

Commit

Permalink
AXIO impletmentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SummySumanth committed Jan 21, 2019
1 parent d7ebc5e commit 60db085
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions view/js/actions/auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const AuthActions = {

googleOAuth: (data) => (dispatch) =>{
console.log('action received access token', data);
},

tokenValidity: () =>{
console.log('asking token validity');
}
}

Expand Down
2 changes: 1 addition & 1 deletion view/js/components/landingPage/signinContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Signin extends Component{
}

responseGoogle(response){
console.log('google response :456 ', response);
console.log('google response : ', response);
this.props.dispatch(AuthActions.googleOAuth(response.accessToken));
}

Expand Down
4 changes: 4 additions & 0 deletions view/js/routes/home/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import {connect} from 'react-redux';

class Home extends Component{

componentWillMount(){
console.log('component will mount;')
}

render(){
return(
<div>
Expand Down

0 comments on commit 60db085

Please sign in to comment.