Skip to content

Commit

Permalink
localstorage added
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadi2000 committed Nov 1, 2023
1 parent 27079ac commit ca8902a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/GoogleLoginButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ function GoogleLoginButton() {
axios.post(url, { token: response.access_token })
.then(response => {
// Handle the successful response here
console.log(response.data);
// console.log(response.data);
// alert('login successful')
localStorage.setItem('token' , response.newToken)
navigate('/dashboard',{replace : true})
})
.catch(error => {
Expand Down

0 comments on commit ca8902a

Please # to comment.