780 broke /whoami for users that are members of old test Cognito groups. This is due to unhandled errors in the case that a Cognito group does not map to a valid group in groups.json. This PR addresses the issue.
[x] Tested locally. Provisioned a fake-group in test Cognito user pool and added my user to it. Logging in reproduced the error and these changes fix the issue.
Description of proposed changes
780 broke /whoami for users that are members of old test Cognito groups. This is due to unhandled errors in the case that a Cognito group does not map to a valid group in groups.json. This PR addresses the issue.
Related issue(s)
Checklist
fake-group
in test Cognito user pool and added my user to it. Logging in reproduced the error and these changes fix the issue.