Closed Syntaf closed 7 years ago
Changed slightly. Either way sending back whatever information may be relavant, but attaching to it a new key value pair to directly tell anyone calling the API whether the user is fresh and new (This is the first time they as a permitted user has tried to login) or whether they have previously logged in at all (They are a permitted exhib or organizer, and have already logged in before. "accountStatus": "newlyAdded" vs "accountStatus": "notNewlyAdded"
When a user authenticates (whether they are a new user or existing user), a JSON object will be posted to the
/login
route in the backend. This data will be a JSON object that resembles the following:This was the data generated from me signing into the site using google. Now upon receiving this the backend must do: