We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da65f5e commit 4152e0cCopy full SHA for 4152e0c
examples/with-cookie-auth-fauna/pages/profile.js
@@ -35,7 +35,7 @@ export async function getServerSideProps(ctx) {
35
36
const profileInfo = await profileApi(faunaSecret)
37
38
- return { userId: profileInfo }
+ return { props: { userId: profileInfo } }
39
}
40
41
const response = await fetch('/api/profile')
@@ -50,7 +50,7 @@ export async function getServerSideProps(ctx) {
50
51
const data = await response.json()
52
53
- return { userId: data.userId }
+ return { props: { userId: data.userId } }
54
55
56
export default withAuthSync(Profile)
0 commit comments