feat: Implement new authentication and account management system, refactoring password gates and settings components.

This commit is contained in:
kuekhaoyang
2026-02-17 00:09:56 +08:00
parent ba615e8965
commit 0753492dfd
22 changed files with 420 additions and 820 deletions
+10
View File
@@ -0,0 +1,10 @@
import { getProfileId } from '@/lib/store/auth-store';
/**
* Returns a profiled localStorage key based on the current user's profileId.
* If no session exists, returns the base key unchanged (backward compatible).
*/
export function profiledKey(baseKey: string): string {
const id = getProfileId();
return id ? `${baseKey}-p-${id}` : baseKey;
}