Skip to content

Commit b44c24d

Browse files
committed
chore(core): HawkUserManager storage key name update
1 parent d0c4bff commit b44c24d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/users/hawk-user-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { HawkStorage } from '../storages/hawk-storage';
44
/**
55
* Storage key used to persist the auto-generated user ID.
66
*/
7-
export const HAWK_USER_ID_KEY = 'hawk-user-id';
7+
export const SESSION_STORAGE_KEY = 'hawk-user-id';
88

99
/**
1010
* Manages the affected user identity.
@@ -40,7 +40,7 @@ export class HawkUserManager {
4040
if (this.user) {
4141
return this.user;
4242
}
43-
const storedId = this.storage.getItem(HAWK_USER_ID_KEY);
43+
const storedId = this.storage.getItem(SESSION_STORAGE_KEY);
4444
return storedId ? { id: storedId } : null;
4545
}
4646

@@ -59,7 +59,7 @@ export class HawkUserManager {
5959
* @param id - The generated ID to persist.
6060
*/
6161
public persistGeneratedId(id: string): void {
62-
this.storage.setItem(HAWK_USER_ID_KEY, id);
62+
this.storage.setItem(SESSION_STORAGE_KEY, id);
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)