Closed
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
It is currently not possible to access context data in Parse.Cloud.beforeLogin and Parse.Cloud.afterLogin hook triggers.
Feature / Enhancement Description
Similar to Parse.Cloud.beforeSave and Parse.Cloud.afterSave triggers, where it is possible to get context data feom the context object via the request parameter of the trigger callback.
Example Use Case
- This could help facilitate MFA authentication such as in cases when an email verification needs to be passed alongside parse email auth data before login is permitted.
- It may also come in handy in context switching during or after login such as in case of performing certain actions based on context data after login.
Alternatives / Workarounds
In my project, I was forced to use Redis cache and making additional request to the server which wasn't really necessary.
Also, lack of this feature resulted in extra code.
3rd Party References
None