Skip to content

Commit

Permalink
fixed redirect_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ravikumawat7716 committed Dec 14, 2023
1 parent c8ea032 commit cc5bc47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
client_id:
"1043737632690-hogp7qi303vimd5tflakfhvduodkfjjh.apps.googleusercontent.com",
scope: "email profile openid",
redirect_uri: "http://localhost:4000/auth/callback",
redirect_uri: "https://sundarbans-website.vercel.app/",
callback: response => {
if (response.code) {
this.sendCodeToBackend(response.code);
Expand Down Expand Up @@ -166,7 +166,6 @@
emailUrl: this.userDetails.picture // Assuming 'picture' is the URL
});
console.log('POST request response:', response.data);
alert(response.data.error);
} else {
// User email does not match the required domain, reject login
console.error('Login rejected: Invalid email domain.');
Expand Down

0 comments on commit cc5bc47

Please sign in to comment.