Skip to content

Commit 5bb11e7

Browse files
committed
changing the callBack url to work with local host
1 parent dccf7c4 commit 5bb11e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/login/login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const LoginComponent = () => {
2020
const [loading, setLoading] = useState(false);
2121
const { query } = router;
2222

23-
console.log('session',session);
23+
console.log('session',session);
2424

2525
const handleLoginWithGoogle = async () => {
2626
try {
@@ -49,7 +49,7 @@ const LoginComponent = () => {
4949
email,
5050
password,
5151
redirect: true,
52-
callbackUrl: `http://localhost:3000${query?.callBack}`,
52+
callbackUrl: query?.callBack ? `http://localhost:3000${query?.callBack}`: 'http://localhost:3000',
5353
});
5454
console.log('signInResponse:', signInResponse);
5555
if (signInResponse?.error) {

0 commit comments

Comments
 (0)