Getting a callback from Twitter

What I’d suggest is using an API endpoint, which can pick up the query parameters and then HTTP redirect you to a URL with a hash on. You can either capture the OAuth token and update the session in the HTTP endpoint (if you specify cross_site_session=True, that HTTP endpoint will run in the same session as the rest of your app), or redirect to https://your.anvil.app/#?params=etc where you can pick them out with get_url_hash().

3 Likes