app.post('/print_auth', async (req: Request, res: Response) => {
const session = await auth.api.getSession({
headers: new Headers(req.headers as Record<string, string>),
});
console.log(session);
res.json({ success: true });
});
app.post('/print_auth', async (req: Request, res: Response) => {
const session = await auth.api.getSession({
headers: new Headers(req.headers as Record<string, string>),
});
console.log(session);
res.json({ success: true });
});