Skip to content
Discussion options

You must be logged in to vote

This is fine

let { data, error } = await supabase.rpc('fake_op', {
  name_input: name,
});

This code, inside the action, will only run server side so there is no leaking of any api keys or other things.
However, if supabase is returning data that you do not want to expose completely to the client you should probably do some sanitizing step here (but in that case you should do it in your loadas well.

Replies: 1 comment 2 replies

Comment options

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

@stephane-vanraes
Comment options

Answer selected by shimulroy842
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