How does medium implement access to premium articles?
Medium allows 3 premium stories per user for a non-member. You can access medium in two ways:
- Logged in as a user
- 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?