feat: Add context to Cloud Code Triggers beforeLogin and afterLogin (#8724)

This commit is contained in:
Diamond Lewis
2023-09-20 03:47:35 -05:00
committed by GitHub
parent 05939858af
commit a9c34ef1e2
4 changed files with 38 additions and 4 deletions

View File

@@ -3327,7 +3327,7 @@ describe('beforeLogin hook', () => {
expect(req.headers).toBeDefined();
expect(req.ip).toBeDefined();
expect(req.installationId).toBeDefined();
expect(req.context).toBeUndefined();
expect(req.context).toBeDefined();
});
await Parse.User.signUp('tupac', 'shakur');
@@ -3444,7 +3444,7 @@ describe('afterLogin hook', () => {
expect(req.headers).toBeDefined();
expect(req.ip).toBeDefined();
expect(req.installationId).toBeDefined();
expect(req.context).toBeUndefined();
expect(req.context).toBeDefined();
});
await Parse.User.signUp('testuser', 'p@ssword');