Describe the bug
In Edge, when I use the Hosted UI I have the following error:
"Uncaught (in promise): TypeError: Failed to execute 'fetch()' on 'Window': Invalid argument.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error on Edge after using Hosted UI.
Screenshots
Desktop (please complete the following information):
Additional context
The problem occurs only on Edge. I have no problem on Chrome, Safari or even IE11.
Sample code
export class AppComponent implements OnInit {
ngOnInit() {
Hub.listen('auth', (data) => {
const { payload } = data;
this.onAuthEvent(payload);
});
}
onAuthEvent(payload: any) {
switch (payload.event) {
case 'signIn':
console.log('signIn');
break;
case "signOut":
console.log('signOut');
break;
}
}
onHostedUI() {
Auth.federatedSignIn();
}
onSignOut() {
Auth.signOut();
}
}
Any movement on this? or is there a work around? I have tried some polyfills but no luck. I currently have this issue and can't release latest build with amplify integration until it is resolved. However, I don't want to remove amplify completely because of this issue, but will have to if I see no movement.
Update "aws-amplify" to version 1.1.36.
This version has the following fix:
-fix(@aws-amplify/core): Edge browser misidentified as Chrome (#3807)
@gustavo-luis-bsd Thanks for the information. I close the issue.
Most helpful comment
Any movement on this? or is there a work around? I have tried some polyfills but no luck. I currently have this issue and can't release latest build with amplify integration until it is resolved. However, I don't want to remove amplify completely because of this issue, but will have to if I see no movement.