mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-24 20:47:55 +00:00
auto-commit for b072dca0-4567-4f39-ad01-7f4641b42636
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
Platform,
|
||||
} from 'react-native';
|
||||
import { WebView } from 'react-native-webview';
|
||||
import { API_ENDPOINTS } from '../config/api';
|
||||
|
||||
const TURNSTILE_SITE_KEY = '1x00000000000000000000AA';
|
||||
|
||||
@@ -24,11 +25,8 @@ export default function HumanVerificationScreen({ navigation }: any) {
|
||||
setVerifying(true);
|
||||
|
||||
try {
|
||||
// Get backend URL from environment
|
||||
const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001';
|
||||
|
||||
// Verify token with backend
|
||||
const response = await fetch(`${backendUrl}/api/verify-turnstile`, {
|
||||
const response = await fetch(API_ENDPOINTS.VERIFY_TURNSTILE, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user