DEV Community

Discussion on: Grant for the Web Hackathon Help Thread

Collapse
 
ekafyi profile image
Eka

Sorry—n00b question but I just want to confirm my understanding. Web Monetization is run with the document.monetization API (docs), so it’s only supposed to run on the client-side where document is available.

If we have monetized (ie. “paywalled”) content and implement it on a SSR site, the server-generated pages will only have the free content; no way to authenticate user from the server. Is this correct?

Collapse
 
alispivak profile image
ali spivak

Yes, generally the easiest way to add web monetization is client-side with the meta tag. We are working on offering back-end integration and options.

There is also an option to use the OAuth Web Monetization Script. However, you will need to register your client app and be approved for OAuth access. docs.coil.com/

Collapse
 
ekafyi profile image
Eka

Thank you for your answer, Ali!