Closed murfguy closed 6 years ago
Consolidated into update 'syncUser' function under Users library. This takes the place of an older 'syncUser' function that has been renamed to 'syncUserData'.
The new 'syncUser' is a catch-all function that will add a new user if they are not in the database, OR will update with fresh data if they are. This is used by both the profile page and the authentication process.
This also helps to resolve Issue #39 .
There are currently three separate places where users are sync to the database.
These should be consolidated under a single function that will run all checks and update data accordingly.