Update auth-test.tsx
This commit is contained in:
parent
d749b1088b
commit
9bb680bfbf
1 changed files with 2 additions and 2 deletions
|
@ -62,13 +62,13 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||||
console.log(
|
console.log(
|
||||||
session?.user,
|
session?.user,
|
||||||
image,
|
image,
|
||||||
sponsors.map((sponsor: any) => sponsor.avatar === image)
|
sponsors.map((sponsor: any) => sponsor.avatar)
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
isOwner: session?.user?.email === 'steveruizok@gmail.com',
|
isOwner: session?.user?.email === 'steveruizok@gmail.com',
|
||||||
isSponsor: sponsor !== undefined,
|
isSponsor: sponsor,
|
||||||
ssrSession: session,
|
ssrSession: session,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue