Getting stripe plan name in SSR component session

Hello, thanks so much for providing the stripe plugin, it is awesome! One thing I'm not sure is that what is the best way to get the user's subscribed plan in session for a SSR component? The userId can definitely be used to fetch the subscription table. Is there a better way that the plan information can be contained in session.user?
Solution
Using you db directly is the better option but you can use auth.api.listApiKeys
Was this page helpful?