@arc-publishing/sdk-amp
TypeScript icon, indicating that this package has built-in type declarations

1.79.0 • Public • Published

AMP

This SDK is responsible for interacting with Google's AMP pages. The purpose of the SDK is to offer a solution for paywall issues related to Apple’s Intelligent Tracking Prevention’s update that blocks 3rd party resources from accessing script writable storage. The Arc AMP paywall uses either cookies or localStorage for managing user tokens and logged in state, which has resulted in some subscribed users unnecessarily being paywalled.

Using the checkAMPReaderID method available via this SDK, the AMP-provided READER_ID will be used to fetch entitlements in the absence of a jwt. This method should be called following all login, heartbeat and options calls in order to ensure the subscriber retains access to the right content.

Joining a Group Package

  • Methods
    • [[checkAMPReaderID]]

Package Sidebar

Install

npm i @arc-publishing/sdk-amp

Weekly Downloads

36

Version

1.79.0

License

ISC

Unpacked Size

211 kB

Total Files

72

Last publish

Collaborators

  • maddoxnelson
  • design1online
  • juliebacon
  • amyerz
  • raclar
  • arcsubs
  • robin.giannattasio
  • chenghsinw
  • mattkimwp
  • styonsk