setono/client-id-contracts

Generic abstraction related to client id

v0.2.0 2021-04-22 10:04 UTC

This package is auto-updated.

Last update: 2024-03-29 04:19:03 UTC


README

Client ids are used in many applications to identify a user. It could be in

  • Analytics software to identify the user between requests
  • Consent management software to check that a user has consented

This library provides a very simple abstraction over this concept by providing

  • a ClientId value object
  • a ClientIdGeneratorInterface that will generate a ClientId
  • a ClientIdProviderInterface that will return a client id