mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-15 01:11:03 +00:00
auto-commit for 18ca60c1-6fdf-4650-ac9a-23fdffc515c5
This commit is contained in:
@@ -24,8 +24,11 @@ export default function HumanVerificationScreen({ navigation }: any) {
|
|||||||
setVerifying(true);
|
setVerifying(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// Get backend URL from environment
|
||||||
|
const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001';
|
||||||
|
|
||||||
// Verify token with backend
|
// Verify token with backend
|
||||||
const response = await fetch('http://localhost:8001/api/verify-turnstile', {
|
const response = await fetch(`${backendUrl}/api/verify-turnstile`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user