▲ 13 r/sveltejs
How should I protect my remote functions?
If I have a protected route using load functions or hooks, does that make remote functions in that route also protected.
Let's say I have a route to edit a post, before user open it I made sure they are authenticated and authorized to edit that post using load function.
Do I need to do the same thing before saving post edits, I found that remote functions become routes, and that means that you can even use fecth API to call that function.
Thank you for your help.
u/__random-username — 5 days ago