You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/cloud.js
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,19 @@
194
194
*/
195
195
AV.Cloud.afterDelete=function(name,func){};
196
196
197
+
/**
198
+
* Registers a on-login function.
199
+
* <br/><strong>Available in Cloud Code only</strong>.
200
+
* If you want to use onLogin for an user in the AV JavaScript SDK, you should pass the function:
201
+
* <code><pre>
202
+
AV.Cloud.onLogin(function(request, response) {
203
+
// code here
204
+
});
205
+
* </pre></code>
206
+
* @param {Function} func The function to run before an user signin. This function should take two parameters a AV.Cloud.FunctionRequest and a AV.Cloud.FunctionResponse.
207
+
*/
208
+
AV.Cloud.onLogin=function(func){};
209
+
197
210
/**
198
211
* Makes an HTTP Request.
199
212
* <br/><strong>Available in Cloud Code only</strong>.
0 commit comments