thunderbird_accounts.subscription.decorators

Functions

active_subscription_required([function, ...])

Require an authenticated user with an active subscription.

init_paddle()

inject_paddle(func)

Inject an initialized Paddle Client into a function as paddle.

thunderbird_accounts.subscription.decorators.inject_paddle(func)[source]

Inject an initialized Paddle Client into a function as paddle. If the paddle python sdk is not installed this will return None.

thunderbird_accounts.subscription.decorators.active_subscription_required(function=None, *, error_message=None, response_data=None, status=403)[source]

Require an authenticated user with an active subscription.