Socket
Socket
Sign inDemoInstall

@arc-publishing/sdk-amp

Package Overview
Dependencies
4
Maintainers
10
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @arc-publishing/sdk-amp

Arc AMP SDK to work with Google AMP Pages


Version published
Weekly downloads
92
decreased by-10.68%
Maintainers
10
Created
Weekly downloads
 

Readme

Source

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]]

Keywords

FAQs

Last updated on 31 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc