how to get user info in web app routes

i fork this app,https://app.gadget.dev/auth/fork?domain=stripe-template.gadget.app i wanna get user info like in shopify app : const info= connections.shopify.current please tell me how to do ,tks
4 Replies
Chocci_Milk
Chocci_Milk•7mo ago
Hello, In the Stripe template, you don't have a Shopify app. Please also note that Shopify requires that you use their billing system if you have an app on their app store. For Stripe there's no equivilent connection as we haven't built anything into the platform for Stripe You should take a look at the Stripe docs for information on how to get the customer info
leshu
leshuOP•7mo ago
yes, i mean how to get user id in routes🥹
No description
Chocci_Milk
Chocci_Milk•7mo ago
You should get the session by using await session.get (gives you the id) then you can fetch the info for the session which will have the userId
leshu
leshuOP•6mo ago
sorry, await session.get (gives you the id) what is the " gives you the id" ? Does it mean that I can only accept the USERID parameter passed from the front end?

Did you find this page helpful?