mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-14 16:23:43 +08:00
feat: Implement new authentication and account management system, refactoring password gates and settings components.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user