Handle saving/restoring/checking semantics

Interface

GdprSavior

Export

Hierarchy

Constructors

Properties

config: LocalStorageConfig = ...
decorator: undefined | GdprManagerDecorator
storage: LocalStore

Methods

  • Check if there is an existing manager state (should rely on GdprSavior#exists)

    Returns Promise<void>

  • Determine whether there is already an existing manager (saved state)

    Parameters

    • Optional shouldUpdate: boolean

      Whether it should update its savior internals (should default to true)

    Returns Promise<boolean>

  • Store the manager state if none is already save

    Parameters

    Returns Promise<boolean>