Put in order · Next.js course · Module 7: Authentication and Authorization
getServerSession Syntax in NextAuth
Arrange the syntax for fetching a server session in NextAuth:
Items to put in order
- getServerSession(
- authOptions)
- = await
- const session
You can check the correct answer by solving this task in the CodeWorlds game.