Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routes/signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function Login() {
try {
await authClient.signIn.social({
provider: 'google',
callbackURL: 'http://localhost:3000/dashboard',
callbackURL: window.location.origin + '/dashboard',
})
} catch (err: any) {
console.error('Google Signin Error:', err)
Expand Down
4 changes: 2 additions & 2 deletions src/routes/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Signup() {
email,
password,
name,
callbackURL: 'http://localhost:3000/email-verified', // Redirect to Frontend after verification
callbackURL: window.location.origin + '/email-verified', // Redirect to Frontend after verification
},
{
onRequest: () => {
Expand Down Expand Up @@ -313,7 +313,7 @@ function Signup() {
try {
await authClient.signIn.social({
provider: 'google',
callbackURL: 'http://localhost:3000/dashboard',
callbackURL: window.location.origin + '/dashboard',
})
} catch (err: any) {
console.error('Google Signin Error:', err)
Expand Down