Hooks

useCurrentUserPlan()

The useCurrentUserPlan() hook returns the current user's plan, sourced from the subscriptions table from Supabase. If the user is logged out or has no active plan, the hook returns free. This makes it super simple to manage what the user has access or doesn't.

Unlock full documentation

This part of the documentation are for members only. Please upgrade your plan to unlock this section.

On this page