feat: Add persistent sign-in toast for orphaned passwords

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 16:01:12 +00:00
parent 4ce2c266eb
commit 69c16c2b1e
3 changed files with 58 additions and 3 deletions

View File

@@ -293,7 +293,9 @@ export async function hasOrphanedPassword(): Promise<boolean> {
* Trigger email confirmation for orphaned password
* Direct trigger without requiring password re-entry
*/
export async function triggerOrphanedPasswordConfirmation(): Promise<IdentityOperationResult> {
export async function triggerOrphanedPasswordConfirmation(
source?: string
): Promise<IdentityOperationResult> {
try {
const { data: { user } } = await supabase.auth.getUser();
@@ -313,7 +315,8 @@ export async function triggerOrphanedPasswordConfirmation(): Promise<IdentityOpe
if (error) throw error;
await logIdentityChange(user.id, 'orphaned_password_confirmation_triggered', {
method: 'manual_button_click'
method: source || 'manual_button_click',
timestamp: new Date().toISOString()
});
return {