-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for transactions #315
Comments
As an alternative solution, even if the register function doesn't support transactions you can pass a user document created with a session. If something fails, it will be rolled back.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies in advance if I got something wrong, but as far as I can see, it's impossible to use
PassportLocalModel
's methods within a transaction. For example,PassportLocalModel
'sregister()
method doesn't take arguments/doesn't return an object that would take a session object.Code example:
How I think it should work
The text was updated successfully, but these errors were encountered: