mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-17 06:31:01 +00:00
auto-commit for 9fe2f053-e4f2-47f4-8507-9e6dd1f50ca5
This commit is contained in:
@@ -52,7 +52,8 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||||||
|
|
||||||
const signIn = async (email: string, password: string) => {
|
const signIn = async (email: string, password: string) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('http://localhost:8001/api/auth/signin', {
|
const backendUrl = process.env.EXPO_PUBLIC_BACKEND_URL || 'http://localhost:8001';
|
||||||
|
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