瀏覽代碼

Update auth-test.tsx

main
Steve Ruiz 4 年之前
父節點
當前提交
bd3d191960
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8
    0
      pages/auth-test.tsx

+ 8
- 0
pages/auth-test.tsx 查看文件

@@ -64,6 +64,14 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
64 64
       sponsor.avatar.includes(id)
65 65
     )
66 66
 
67
+    console.log(
68
+      JSON.stringify({
69
+        user: session.user,
70
+        sponsors: sponsors,
71
+        isSponsor: sponsor !== undefined,
72
+      })
73
+    )
74
+
67 75
     isSponsor = sponsor !== undefined
68 76
   }
69 77
 

Loading…
取消
儲存