#Do server action responses get exposed to the browser?

3 messages · Page 1 of 1 (latest)

hasty lava
#

I'm currently architecting a way I can implement an auth token exchange in my application and prevent this token from being exposed.

For example, user wants to grant access to a 3rd party application that first requires them to be directed, log in/confirm the connect, and then redirected back with a valid auth token for future api requests to that 3rd party app.

My goal is to handle this flow with server actions, once the token is given, update the users information in the database but not return it. Is that possible or am I thinking of this wrong?

Cheers.

undone oasisBOT
#

🔎 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)

oak fiber