Sfoglia il codice sorgente

Update auth-test.tsx

main
Steve Ruiz 4 anni fa
parent
commit
bd3d191960
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8
    0
      pages/auth-test.tsx

+ 8
- 0
pages/auth-test.tsx Vedi File

@@ -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…
Annulla
Salva