If we use the supertokens connection uri, we would...
# support-questions-legacy
c
If we use the supertokens connection uri, we wouldn't be able to modify the database to create new tables etc. This means that I have to "copy" the user id and email to my app's database, resulting in redundant information and possibly out of sync. What is the recommended action here? Why wouldn't ST let us have the db connection for prod just like for dev?
r
Hey!
The db connection in dev is meant as a way of of just debugging and deleting stuff. You shouldn’t really rely on that
Copying over the info into your db is fine. Though you would only need to copy over the userId and not email (since you can get email from the user if fairly easily using our backend SDK )
c
Yes but that would require an extra db call everytime, no?
1. Need to get the user_id for the session,
2. Then use that id to get the email
So everytime I need the email, an extra db call is required
r
Well, you can put the email in the access token payload
c
Thanks
5 Views