Skip to content
Discussion options

You must be logged in to vote

This will depend entirely on your application.

Think of a server function as a public API endpoint, which can be "called" by someone making an HTTP request with any arguments. What would you need to do to secure it?

For example, you might need to check user authentication/authorization inside the server function, to see whether the user making the request is allowed to do what this server function does.

All the same questions and concerns apply as would if you were creating a REST API endpoint, because that's what it is.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by seemawn1981
Comment options

You must be logged in to vote
2 replies
@gbj
Comment options

gbj Jul 7, 2025
Maintainer

@seemawn1981
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants