fix CognitoIDP: create_resource_server will crash when `scopes` not specified by cm-iwata · Pull Request #7167 · getmoto/moto
this PR will fix #7163