We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccf7c4 commit 5bb11e7Copy full SHA for 5bb11e7
src/views/login/login.tsx
@@ -20,7 +20,7 @@ const LoginComponent = () => {
20
const [loading, setLoading] = useState(false);
21
const { query } = router;
22
23
- console.log('session',session);
+ console.log('session',session);
24
25
const handleLoginWithGoogle = async () => {
26
try {
@@ -49,7 +49,7 @@ const LoginComponent = () => {
49
email,
50
password,
51
redirect: true,
52
- callbackUrl: `http://localhost:3000${query?.callBack}`,
+ callbackUrl: query?.callBack ? `http://localhost:3000${query?.callBack}`: 'http://localhost:3000',
53
});
54
console.log('signInResponse:', signInResponse);
55
if (signInResponse?.error) {
0 commit comments