mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-19 22:51:08 +00:00
auto-commit for 77af2a2d-7bc3-4be2-9b35-ce895c139c34
This commit is contained in:
@@ -84,8 +84,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
language: string = 'en'
|
language: string = 'en'
|
||||||
) => {
|
) => {
|
||||||
try {
|
try {
|
||||||
const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001';
|
const response = await fetch(API_ENDPOINTS.AUTH_SIGNUP, {
|
||||||
const response = await fetch(`${backendUrl}/api/auth/signup`, {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user