## Todo - Get google login working - Transfer leaderboard and other cloud functions - Reverse list of results on account page - spinning wheel on account page should dissapear after data is loaded - Account data should be updated when new result is added/test completed - Add email verification - Joined date doesn't look the same as it did before - Personal bests items should not be arrays - should be objects that are set on new pb - Move user data to localstorage instead of cookies - Result is duplicated in analytics - Does entire result need to be stored in analytics - Should result be stored in seperate collection and then referenced in user doc and analytics? - Fix localhost, production, development server detection - Should be a setting in the .env - Maybe it could be set through package.json - When a specific script is run, a certain mode will be activated - Tests started and completed doesn't increment when quitting a running test - Doesn't work as I expected in live version either, no issue ## After beta is ready - make sure refresh token won't expire - make refresh token expire after session if don't remeber me is set? - Keep jwt and refresh in cookies? - Get somebody else to check over security due to my lack of expertise - Work on transfering data from firebase to mongo ## After release - Investigate and improve efficiency after mongo merge or during review - I'm not sure about this but it might be worthwhile to use redis to store userdata up to a certain point - Users who have been requested in the last hour will be stored in the redis database so that their data can be sent again without having to search a large database - After an hour without a new request they can be removed from memory - User data should not be requested from the server every time a test is submitted, result should just be appended to results