From ba71610fb68c3bc6d65c58203fc8adc200e33704 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 9 Feb 2026 16:24:10 -0600 Subject: [PATCH] fix: use actual API baseUrl for Turnstile instead of localhost --- sojorn_app/lib/widgets/auth/turnstile_widget.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sojorn_app/lib/widgets/auth/turnstile_widget.dart b/sojorn_app/lib/widgets/auth/turnstile_widget.dart index 60ee09f..e3111e0 100644 --- a/sojorn_app/lib/widgets/auth/turnstile_widget.dart +++ b/sojorn_app/lib/widgets/auth/turnstile_widget.dart @@ -1,5 +1,6 @@ import 'package:cloudflare_turnstile/cloudflare_turnstile.dart'; import 'package:flutter/material.dart'; +import '../../config/api_config.dart'; class TurnstileWidget extends StatelessWidget { final String siteKey; @@ -10,10 +11,7 @@ class TurnstileWidget extends StatelessWidget { super.key, required this.siteKey, required this.onToken, - this.baseUrl = const String.fromEnvironment( - 'TURNSTILE_BASE_URL', - defaultValue: 'http://localhost/', - ), + this.baseUrl = ApiConfig.baseUrl, }); @override