Build a Subscription App
1. Create subscription products
2. Install and initialize the SDK
npm install @tiun/sdkimport { tiun } from '@tiun/sdk';
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});3. Build a pricing page
4. Handle checkout success
5. Gate content based on access
6. Add login and logout
7. Handle session restore
8. Go live
Full example
Last updated
Was this helpful?