impress-2020/src
Matchu 2fb84b0b0f Better handle editUsername when Auth0 update fails
Hmm, right, okay, we *generally* should have all users imported to Auth0, but this can fail if the cron job is behind or Auth0 rejected the data (e.g. user data in a format it doesn't support).

Previously, this would apply the name change in the database, but return Auth0's "The user does not exist." error to the GraphQL client, making it look like the update fully failed.

In this change, we handle that case differently: when the Auth0 update fails with a 404, we proceed but log a warning; and when Auth0 fails with an unexpected error, we roll back the database change in addition to raising the error to the client, to keep the behavior obvious and consistent.
2021-10-21 12:17:12 -07:00
..
app Fix email search redirect 2021-10-21 11:56:55 -07:00
server Better handle editUsername when Auth0 update fails 2021-10-21 12:17:12 -07:00
shared Fix UC outfit images 2021-05-25 17:02:29 -07:00
index.js inline index.css, omit unused fonts, preload hints 2020-05-18 00:56:46 -07:00
react-app-env.d.ts Finally finish TS setup, build works! 2021-02-02 21:38:57 -08:00