mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 17:31:12 -05:00
feat: Add persistent sign-in toast for orphaned passwords
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user