tasklert-api / test_cookies.py
hashir-qt's picture
initial deploy
507973e
Raw History Blame Contribute Delete
586 Bytes
# Quick test to see what Better Auth cookies look like
import asyncio
import httpx
async def test():
# Try to get session from Better Auth
client = httpx.AsyncClient()
try:
# This should fail but show us the response
response = await client.get(
"http://localhost:3000/api/auth/get-session",
timeout=5.0
)
print(f"Status: {response.status_code}")
print(f"Response: {response.text[:500]}")
except Exception as e:
print(f"Error: {e}")
finally:
await client.aclose()
asyncio.run(test())