Skip to content

Commit 4152e0c

Browse files
authored
(fix) Missing props key from getServerSideProps (#14255)
Crashes the site This change fixes the example examples/with-cookie-auth-fauna/pages/profile.js
1 parent da65f5e commit 4152e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/with-cookie-auth-fauna/pages/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function getServerSideProps(ctx) {
3535

3636
const profileInfo = await profileApi(faunaSecret)
3737

38-
return { userId: profileInfo }
38+
return { props: { userId: profileInfo } }
3939
}
4040

4141
const response = await fetch('/api/profile')
@@ -50,7 +50,7 @@ export async function getServerSideProps(ctx) {
5050

5151
const data = await response.json()
5252

53-
return { userId: data.userId }
53+
return { props: { userId: data.userId } }
5454
}
5555

5656
export default withAuthSync(Profile)

0 commit comments

Comments
 (0)