wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.63k stars 1.18k forks source link

Rewrite `email` auth to use more higher-level helper functions #1631

Open infomiho opened 9 months ago

infomiho commented 9 months ago

Our email signup flow involves a lot of steps, if developers want to create a "custom" flow, they will need to reimplement our flow to keep all the security benefits.

The problem is that the flow involves a lot of steps and it can be annoying to implement. We should wrap our implementation into multiple higher level function that than we use, but also export for users to more easily reimplement our flow. They can of course, not some piece of our flow.

Martinsos commented 9 months ago

Connected discussion about this: https://github.com/wasp-lang/wasp/pull/1620#discussion_r1444935656