Whop SDK
The whop sdk is available for use in the react native app out of the box. Using this you can fetch data within the scope of the current user.We recommend using the useQuery hook from @tanstack/react-query to fetch
data.
Some operations are only available on the server, so make sure you call those from your api. Check out the SDK reference to see which ones have the “server only” flag.
Making authenticated requests
You can make authenticated requests to your API by using the same proxy infrastructure used for existing web apps.- Set your API origin as the
Base URL
in the developer dashboard

- Create your API endpoint
app/api/user/route.ts
- Make a fetch request to your API endpoint from your react native app using the returned
apiOrigin
from__internal_execSync("getAppApiOrigin", {})
It’s important to use the
apiOrigin
to make authenticated requests to your API endpoints.