Explorar el Código

Update auth-test.tsx

main
Steve Ruiz hace 4 años
padre
commit
bd3d191960
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8
    0
      pages/auth-test.tsx

+ 8
- 0
pages/auth-test.tsx Ver fichero

@@ -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…
Cancelar
Guardar