#Need help hiding JSX data from unauthorized users

15 messages · Page 1 of 1 (latest)

astral moonBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
jolly cargo
#

check the user's authentication status first in server side befoer sending jsx?

#

is the jsx a string or a jsx

cold tide
cold tide
#

I tried sending it as json

#

but I don't know how to parse objects to react nodes

jolly cargo
#

I mean why not just use page.tsx for it?

cold tide
#

but it's fine I figured out how to ship it from the server

#

you just use React.cloneElement to parse json from compiled JSX to a react element

cold tide
#

Actually nevermind

#

Imma quickly check if page.tsx code actually gets shipped to the client or not

#

yeah it does

#

so that's not a solution