https://supertokens.com/ logo
#general
Title
# general
g

giordifemifemz

05/29/2021, 3:07 AM
@User Good day, I hope you are doing well? I have a question quick, Im learning superToken setting up authentication via nextjs. I have a question around the best practise in terms of storing user records along with their sessionId that superToken provides when they are logged in. What im currently thinking is I have a user model and I run a middleware function that checks if the logged in user exists and then assign their authToken to the newly created user and then save the users to the db?