mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-20 07:01:09 +00:00
auto-commit for 3899eb26-97f1-4447-99fe-04356bbff96a
This commit is contained in:
@@ -53,8 +53,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
|
|
||||||
const signIn = async (email: string, password: string) => {
|
const signIn = async (email: string, password: string) => {
|
||||||
try {
|
try {
|
||||||
const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001';
|
const response = await fetch(API_ENDPOINTS.AUTH_SIGNIN, {
|
||||||
const response = await fetch(`${backendUrl}/api/auth/signin`, {
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user