My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How does medium implement access to premium articles?

Harsh Pancholi's photo
Harsh Pancholi
·Nov 20, 2018

Medium allows 3 premium stories per user for a non-member. You can access medium in two ways:

  1. Logged in as a user
  2. Without being logged in

It is easy to implement restriction to premium stories for a logged in user as we can send 'userId' in a token for each request and keep a counter in the backend. What I found intruding is how do they implement this restriction when a non-logged in user?