Skip to content

Commit

Permalink
redirect to dashboard on signup confirmation link
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Oct 7, 2024
1 parent b4cdf60 commit 2adcb07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/auth/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ export const load: PageLoad = async ({ url }) => {
if (url.searchParams.get('type') === 'recovery') {
redirect(303, '/auth/recovery');
}

if (url.searchParams.get('type') === 'signup') {
redirect(303, '/protected-routes/dashboard');
}

return {};
};

0 comments on commit 2adcb07

Please sign in to comment.