wasp-lang / wasp

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

Login hooks #2117

Open infomiho opened 1 week ago

infomiho commented 1 week ago

We want to add onBeforeLogin and onAfterLogin hooks analogously to our signup hooks.

We would be able to reject logins based on some criteria in the onBeforeLogin hook.

Also, we would be able to get the access token for OAuth logins in the onAfterLogin hook. Also, we would get the uniqueRequestId in the onAfterLogin (same as we had for onAfterSignup).