parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Add invocation event information to `verifyUserEmails` parameters

Open mtrezza opened this issue 11 months ago • 5 comments

New Feature / Enhancement Checklist

Current Limitation

When setting the Parse Server option verifyUserEmails to a function, it's unknown to the function why it has been called. This does not allow for taking specific action according to the event.

Feature / Enhancement Description

Add a parameter to the method call, to know whether:

  • It was a sign-up or login
  • Which auth method has been used (username/password, auth provider)

It could simply pass the object that would be stored in the session createdWith field, as that already contains all the infos, for example:

{ "action": "login", "authProvider": "apple" }
{ "action": "signup", "authProvider": "password"}

Example Use Case

Require email verification only for auth providers who do not verify email addresses themselves.

mtrezza avatar Dec 24 '24 23:12 mtrezza

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

Hello @mtrezza, I am willing to work on this issue will you please assign this to me!

Vishal4real avatar Mar 14 '25 07:03 Vishal4real

@Vishal4real Feel free to just go ahead and submit a PR. We do not assign issues. As long as there is a linked, published PR that is actively being worked on, others will see it.

mtrezza avatar Mar 14 '25 10:03 mtrezza