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

Use Deep Linking for logging in using native app on mobile devices #33

Open
2 tasks
amiller opened this issue Oct 20, 2024 · 1 comment
Open
2 tasks

Comments

@amiller
Copy link
Contributor

amiller commented Oct 20, 2024

We can tell from the user agent fields in the request headers if the requester is on a mobile or a desktop.

Our current redirect to https://twitter.com/oauth/oauth_verify works fine for desktop but on mobile it's inconvenient since its a lot more likely that users are logged in via native app but not the browser.

  • check whther user agent is mobile or desktop
  • if mobile, redirect to the deeplink like
    twitter://oauth/authenticate?oauth_token={}
@amiller
Copy link
Contributor Author

amiller commented Oct 22, 2024

It seems more complicated because the redirect from the twitter app doesn't return back to the browser

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

1 participant