Below code will definitely get the JWT token
Amplify.Auth.getPlugin(AmplifyAuthCognito.pluginKey).fetchAuthSession().then( (value) { print(value.userPoolTokensResult.value.accessToken.toJson()); });