seeking some advice on how to handle auth
hi, i’m trying to build basically a glorified survey web app. i want to be able to generate for example N “accounts” and be able to send a link out to people which would authenticate them and they’d be able to start filling in the survey.
think of it like google forms except the link you get is unique by being invited and it expired in like 2 weeks
is this usecase a good fit for next-auth’s magic link feature?
think of it like google forms except the link you get is unique by being invited and it expired in like 2 weeks
is this usecase a good fit for next-auth’s magic link feature?
Solution
I see, in that case, if you have all of the user's information, then for each form against a user, save the unique codes.
Something like this:
User A -> 6AVS21AC
User B -> 9AS2OS1C
User A -> 8VPWAM3
This way, when each of the form is submitted, you'd know which user has submitted their form. You can also forbid submitting a form more than once using a flag or something similar. And if you need, you can also fetch and populate needed user's data.
Something like this:
User A -> 6AVS21AC
User B -> 9AS2OS1C
User A -> 8VPWAM3
This way, when each of the form is submitted, you'd know which user has submitted their form. You can also forbid submitting a form more than once using a flag or something similar. And if you need, you can also fetch and populate needed user's data.
