From b9214f07e673c610f412bfb7c5547435e0dd3de8 Mon Sep 17 00:00:00 2001 From: pulipakaa24 Date: Fri, 20 Mar 2026 00:56:13 -0500 Subject: [PATCH] update for ios --- server/src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/index.ts b/server/src/index.ts index 68e2b63..9e238ea 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -4,7 +4,6 @@ import cors from 'cors'; import { toNodeHandler } from 'better-auth/node'; import { auth } from './auth/auth'; import { authRateLimiter, apiRateLimiter } from './auth/rateLimiter'; -import { requireAuth } from './auth/middleware'; import chemicalsRouter from './routes/chemicals'; import protocolsRouter from './routes/protocols'; import profileRouter from './routes/profile'; @@ -59,7 +58,7 @@ app.get('/api/ios-google', async (req, res) => { // redirects to this endpoint (passed as callbackURL from the native app). // We read the raw session token out of the cookie and forward it in the // custom URL scheme so the iOS app can inject it into URLSession's cookie jar. -app.get('/api/ios-callback', requireAuth, (req, res) => { +app.get('/api/ios-callback', (req, res) => { const cookieHeader = req.headers.cookie ?? ''; const token = cookieHeader .split(';')