Skip to content

Commit

Permalink
console.log(pain)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexespejo committed Jan 22, 2025
1 parent 1b497f4 commit 5f7c318
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion apps/antalmanac/src/components/Header/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function SignInDialog(props: SignInDialogProps) {
const handleGuestLogin = async () => {
if (guestName.length > 0) {
const sessionId = await trpc.users.handleGuestSession.query({ name: guestName });
console.log(sessionId);
setLocalStorageSessionId(sessionId);
onClose();
}
Expand Down
3 changes: 0 additions & 3 deletions apps/backend/src/routers/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const usersRouter = router({
const userId = await RDS.createGuestUserOptional(db, input.name);
if (userId.length > 0) {
let session = await RDS.upsertSession(db, userId, '');
console.log(session);
return session?.refreshToken ?? null;
}
return null;
Expand All @@ -69,7 +68,6 @@ const usersRouter = router({
const session = await RDS.getCurrentSession(db, input.token);
if (!session) return null;

console.log(session);
await RDS.removeSession(db, session.userId, session.refreshToken);
}),
/**
Expand Down Expand Up @@ -123,7 +121,6 @@ const usersRouter = router({

if (userId.length > 0) {
let session = await RDS.upsertSession(db, userId, input.token);
console.log(session?.refreshToken);
return session?.refreshToken ?? null;
}
return null;
Expand Down

0 comments on commit 5f7c318

Please sign in to comment.