Function: useSetStorage()
useSetStorage(
key,value,target?):void
Defined in: src/infrastructure/storage/storage.service.ts:358
Stores a value under the given key (serialized as JSON).
Parameters
key
string
The storage key.
value
unknown
The value to store.
target?
StorageTarget = "localStorage"
Which storage backend to use (default: "localStorage").
Returns
void
Example
useSetStorage("auth_token", "abc123");
useSetStorage("user", { name: "Alice" }, "sessionStorage");