mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-23 05:27:56 +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) => {
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user