Vue
Initialize
<script setup>
import { tiun } from '@tiun/sdk';
import { onMounted, onUnmounted } from 'vue';
onMounted(() => {
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});
});
onUnmounted(() => {
tiun.destroy();
});
</script>
<template>
<!-- your app -->
</template>Checkout
Listen for user changes
Gate content
Login and logout
Paywall events (time-based)
Content management (time-based)
Last updated
Was this helpful?