Implements a secondary method of relaying the callback url to flutter by using local storage.
The new auth.html javascript would look like this.
if(window.opener) {
window.opener.postMessage({
'flutter-web-auth-2': window.location.href
}, window.location.origin);
} else {
//if window.opener is null, we fallback to the local storage approach.
localStorage.setItem('flutter-web-auth-2', window.location.href);
}
window.close();
Fixes #44
Implements a secondary method of relaying the callback url to flutter by using local storage.
The new
auth.html
javascript would look like this.