'Trying to make React interact with my discordjs bot (with express.js as an api server) and i want to make it more secure
as the title say, I have a discord bot that I want to interact with from a react website. From what I know, one of the ways doing that is by making an express.js server on the same process of the discord.js bot and interacting with it from the website (as requests). now the main idea is making buttons that sends POST requests to the API server. although I want to make them secured, so no one can send POST request without logging to the website. Users can only send requests when they're logged in, and to the guild they have permissions in. Now the api request might look like that for example: https://localhost:3000/request/guildId/etc. how I can make it in more secured way so no one can spam and use the API without actually logging into his account?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
