Need help redirecting user to the login page

Hello,
I am working on the freecodecamp Laravel project linked below:

i keep getting this error from my dev compiler

how do i fix this?

ERROR Failed to compile with 1 errors 9:23:06 PM
error in ./resources/js/components/FollowButton.vue?vue&type=script&lang=js&

Syntax Error: SyntaxError: C:\wamp64\www\freecodegram\resources\js\components\FollowButton.vue: Unexpected token (30:12)

28 | });
ERROR Failed to compile with 1 errors 10:28:38 PM
error in ./resources/js/components/FollowButton.vue?vue&type=script&lang=js&

Syntax Error: SyntaxError: C:\wamp64\www\freecodegram\resources\js\components\FollowButton.vue: Unexpected token (30:12)

28 | });
29 |

30 | .catch(errors => {
^
31 | if (errors.response.status == 401) {
32 | window.location = ‘/login’;
33 |

@ ./resources/js/components/FollowButton.vue?vue&type=script&lang=js& 1:0-188 1:204-207 1:209-394 1:209-394
@ ./resources/js/components/FollowButton.vue
@ ./resources/js/app.js
@ multi ./resources/js/app.js ./resources/sass/app.scss