Skip to content

Commit 224898f

Browse files
committed
feat: basic onboarding
1 parent 59e732f commit 224898f

File tree

6 files changed

+625
-277
lines changed

6 files changed

+625
-277
lines changed

apps/dashboard/app/(auth)/login/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ function LoginPage() {
2727
setIsLoading(true);
2828
signIn.social({
2929
provider: 'google',
30-
callbackURL: '/home',
30+
callbackURL: '/websites',
31+
newUserCallbackURL: '/onboarding',
3132
fetchOptions: {
3233
onSuccess: () => {
3334
localStorage.setItem('lastUsedLogin', 'google');
@@ -44,7 +45,8 @@ function LoginPage() {
4445
setIsLoading(true);
4546
signIn.social({
4647
provider: 'github',
47-
callbackURL: '/home',
48+
callbackURL: '/websites',
49+
newUserCallbackURL: '/onboarding',
4850
fetchOptions: {
4951
onSuccess: () => {
5052
localStorage.setItem('lastUsedLogin', 'github');
@@ -69,7 +71,7 @@ function LoginPage() {
6971
await signIn.email({
7072
email,
7173
password,
72-
callbackURL: '/home',
74+
callbackURL: '/websites',
7375
fetchOptions: {
7476
onSuccess: () => {
7577
localStorage.setItem('lastUsedLogin', 'email');

0 commit comments

Comments
 (0)