Skip to content

Commit

Permalink
Change redirect to x.com/home and cookies
Browse files Browse the repository at this point in the history
Signed-off-by: TheHCJ <150591975+TheHCJ@users.noreply.github.com>
  • Loading branch information
HarlJo authored Jun 22, 2024
1 parent cc20a2a commit 48abf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/login_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class _TwitterLoginWebviewState extends State<TwitterLoginWebview> {
webviewController.setUserAgent(userAgentHeader.toString());
webviewController.setNavigationDelegate(NavigationDelegate(
onUrlChange: (change) async {
if (change.url == "https://twitter.com/home") {
final cookies = await webviewCookieManager.getCookies("https://twitter.com/i/flow/login");
if (change.url == "https://x.com/home") {
final cookies = await webviewCookieManager.getCookies("https://x.com/i/flow/login");

try {
final expCt0 = RegExp(r'(ct0=(.+?));');
Expand Down

0 comments on commit 48abf72

Please sign in to comment.