mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 15:11:12 -05:00
Refactor: Simplify Add Password flow
This commit is contained in:
@@ -36,6 +36,25 @@ export default function AuthCallback() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const action = urlParams.get('action');
|
||||
|
||||
if (action === 'password-setup-direct') {
|
||||
console.log('[AuthCallback] Processing password-setup-direct action (direct reset flow)');
|
||||
|
||||
// User set password via Supabase's hosted page
|
||||
// Email identity is already created automatically
|
||||
|
||||
toast({
|
||||
title: "Password Set Successfully!",
|
||||
description: "Your email identity has been created. You can now sign in with your email and password.",
|
||||
});
|
||||
|
||||
// Redirect to auth page for sign-in
|
||||
setTimeout(() => {
|
||||
navigate('/auth');
|
||||
}, 1500);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (action === 'password-setup') {
|
||||
console.log('[AuthCallback] Processing password-setup action');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user