mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-17 16:51:02 +00:00
auto-commit for b072dca0-4567-4f39-ad01-7f4641b42636
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
Platform,
|
Platform,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { WebView } from 'react-native-webview';
|
import { WebView } from 'react-native-webview';
|
||||||
|
import { API_ENDPOINTS } from '../config/api';
|
||||||
|
|
||||||
const TURNSTILE_SITE_KEY = '1x00000000000000000000AA';
|
const TURNSTILE_SITE_KEY = '1x00000000000000000000AA';
|
||||||
|
|
||||||
@@ -24,11 +25,8 @@ 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(`${backendUrl}/api/verify-turnstile`, {
|
const response = await fetch(API_ENDPOINTS.VERIFY_TURNSTILE, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user