Usernames are case insensitive for API calls but are still stored in the database with the right case for display purposes.
When a user sign in, his name is stored in the User objects as it was given. Once authenticated, the API will automatically fetch all the extra information which include the name with the right cas. When updating the name, it flags the User as "not authenticated".
While it is a good thing to flag the User as "not authenticated" when updating its name (it ensure future calls aren't going to fail because the name/token have been updated), it should not flag the User as "not authenticated" if only the case changed.
Usernames are case insensitive for API calls but are still stored in the database with the right case for display purposes.
When a user sign in, his name is stored in the User objects as it was given. Once authenticated, the API will automatically fetch all the extra information which include the name with the right cas. When updating the name, it flags the User as "not authenticated".
While it is a good thing to flag the User as "not authenticated" when updating its name (it ensure future calls aren't going to fail because the name/token have been updated), it should not flag the User as "not authenticated" if only the case changed.