MCPcopy Index your code
hub / github.com/simstudioai/sim / useSubscription

Function useSubscription

apps/sim/lib/auth/auth-client.ts:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 : () => ({ data: undefined, isPending: false, error: null })
54
55export const useSubscription = () => {
56 return {
57 list: client.subscription?.list,
58 upgrade: client.subscription?.upgrade,
59 cancel: client.subscription?.cancel,
60 restore: client.subscription?.restore,
61 }
62}
63
64const { signIn, signUp, signOut } = client
65export { signOut }

Callers 2

useSubscriptionUpgradeFunction · 0.90
BillingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected