Skip to content

Commit ad3b3a0

Browse files
committed
fix: re throw error
1 parent c6cf78a commit ad3b3a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/(protected)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default async function ProtectedLayout({
22
children,
33
}: Readonly<{ children: React.ReactNode }>) {
4-
console.log('layout is useless now: ')
4+
console.log('insice (protected) layout: ')
55
return <>{children}</>
66
}

lib/firebase/firebase.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function Verify({ from }: { from: string }) {
1111
.auth()
1212
.verifyIdToken(session?.value as string)
1313

14-
const headers = new Headers({})
14+
const headers = new Headers()
1515
headers.set('X-Client-Id', process.env.CLIENT_ID as string)
1616
headers.set('X-Uid', decoded.uid)
1717

@@ -35,5 +35,6 @@ export async function Verify({ from }: { from: string }) {
3535

3636
redirect(`login?from=${encodeURIComponent(from)}`, RedirectType.replace)
3737
}
38+
throw error
3839
}
3940
}

0 commit comments

Comments
 (0)