Next.js Discord

Discord Forum

Nextjs Route Handler with unity project

Unanswered
yekoba posted this in #help-forum
Open in Discord
Avatar
yo guys
i have a question
i am making a game and will add a server side save besides of the local save
and i will add route handler to my nextjs project for saving and loading game
but if i do that everyone who can see the endpoint of the api
they can request and change values
how to prevent that?
if it is only web, it can be easier but i also use unity :/
generating an guid and storing this to use as a api key is a good approach?

0 Replies