hanko icon indicating copy to clipboard operation
hanko copied to clipboard

New event for signup, as onAuthFlowCompleted triggers for both sign-up/in

Open Ashutosh-Bhadauriya opened this issue 2 years ago • 2 comments

Checklist

  • [X] I could not find a solution in the existing issues or docs.
  • [X] I agree to follow this project's Code of Conduct.

Description

New event for signup, as onAuthFlowCompleted triggers for both sign-up/in

Workarounds or alternatives

We have to check if the user already exists for this

Hanko Version

0.9.0

Ashutosh-Bhadauriya avatar Nov 03 '23 04:11 Ashutosh-Bhadauriya

@Ashutosh-Bhadauriya Please add a bit more context here

FlxMgdnz avatar Mar 11 '24 10:03 FlxMgdnz

Currently, we have a single event called onAuthFlowCompleted that gets triggered for both user sign-up and sign-in processes. This makes it challenging to differentiate when a new user has signed up. Therefore, iIt will be good to have a separate event for signup. It was requested by a member on discord if I remember correctly

Ashutosh-Bhadauriya avatar Mar 11 '24 10:03 Ashutosh-Bhadauriya