File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11export 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments