-
Maybe this is a stupid question as this is about an example - but why in the readme example there is following snippet:
I would assume that in most cases you will want only to find the user while authenticating. |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Sep 26, 2023
Replies: 1 comment
-
If you use the same strategy instance for both login and signup you need to be able to do a find or create. You can also create a different strategy instance for each form and there only do a find or a create depending if it's login or signup. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergiodxa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use the same strategy instance for both login and signup you need to be able to do a find or create.
You can also create a different strategy instance for each form and there only do a find or a create depending if it's login or signup.