How to validate user in cloud function

is there a way to check that only authenticated user can invoke the moralis cloud functions? (i.e. endpoint to check session id token, etc.)

You can do that check yourself too, you should have access to the entire request object in a cloud function and also to the entire database with master key.

does that mean onyl authenticated user can call the cloud functions endpoint by default?

anyone can call a cloud function, be it authenticated or not

1 Like