This example show how to use Sign in with Ethereum with Next.js.
The example shows how to do a login, session restore and logout; and to get the user info.
The login cookie is httpOnly, meaning it can only be accessed by the API, and it's encrypted using @hapi/iron for more security.