Open Strehk opened 1 month ago
Yeah the data will only be transferred after completing the login flow. This is decoupled from the redirect flow and available as a separate endpoint here: https://github.com/DeutscheModelUnitedNations/munify-delegator/blob/a524c9f63d883e062b5f1e925642de0d39c83098/src/api/routes/user.ts#L44
Maybe there is a more sensible default to call this? Is there a good way to detect "suspicion" of data changes on our side? We can't really know when the user is changing this stuff so I guess we have to guess?
Yeah... We have to guess and flag once the "change data" Button is pressed? Maybe a new Database level boolean is too overkill?
The edited user data is not updated in the DELEGATOR until the cookie expires, since that triggers a renewed fetch of the user data via the id token. We should invalidate the cookie once we suspect the user of editing the account data in the GUARD.