Generates a unique sessionId that is saved in the browser's localStorage. If an sessionId is already saved in the localStorage with the key provided, it will be used instead. For client-side use only! globalThis, crypto, and localStorage must be available.

Accessors

Constructors

Properties

Accessors

  • get value(): string
  • Returns string

Constructors

Properties

#private: any
toString: (() => string)

Type declaration

    • (): string
    • Returns string

valueOf: (() => string)

Type declaration

    • (): string
    • Returns string