File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments