fetch is not defined amazon-cognito-identity-js code example Example: fetch is not defined amazon-cognito-identity-js global.fetch = require('node-fetch')