Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to use returned params when the tab is closed. #66

Open
renanmgs opened this issue Jan 28, 2022 · 3 comments
Open

Need to use returned params when the tab is closed. #66

renanmgs opened this issue Jan 28, 2022 · 3 comments

Comments

@renanmgs
Copy link

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?

@yarn-rp
Copy link

yarn-rp commented May 27, 2022

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

@pawlowskim
Copy link

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'
}

@GowthamanRavichandran3
Copy link

Hi @renanmgs , Try app_links package. This will listen the redirect url. Let me know if you have any doubts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants