flutter_custom_tabs icon indicating copy to clipboard operation
flutter_custom_tabs copied to clipboard

Need to use returned params when the tab is closed.

Open renanmgs opened this issue 3 years ago • 3 comments

I have a login system on a web and im trying to use custom_tabs to login and to get the returned token to use it on the app. Is there any way to get this to work?

renanmgs avatar Jan 28 '22 02:01 renanmgs

You should instead make use of this package: https://pub.dev/packages/flutter_web_auth

yarn-rp avatar May 27 '22 01:05 yarn-rp

You can redirect to you auth page after successful login and on the page use redirection to custom schema with code and state.

On the redirection page something like this works:

window.onLoaded = function(){
window.location.replace('mycustomschema://auth/mobile?code=123&state=456'
}

pawlowskim avatar Sep 11 '23 11:09 pawlowskim